Everything implemented like it should but on assigning or merging the following error occurs:"There was an error running the query ."I've checked all my tables but i cannot see any 'incorrect integer value' anywhere..I've checked the AssignTickets.php file and the following insert statement is mentioned;$sql = "INSERT INTO ost_ticket_thread(id, pid, ticket_id, staff_id, user_id, thread_type, poster, source, title, body, format, ip_address, created, updated) VALUES ('','0','$tid','$currentId','0','N','".$staff->firstname.' '.$staff->lastname."','','Ticket assigned to ".$staff->firstname.' '.$staff->lastname."','Ticket Assignment','html','','".date("Y-m-d H")."','0000-00-00 00')";However, inserting a blank id won't work and the $currentId isn't defined anywhere(Get).If i change the query to:$sql = "INSERT INTO ost_ticket_thread(pid, ticket_id, staff_id, user_id, thread_type, poster, source, title, body, format, ip_address, created, updated) VALUES ('0','$tid','$assignId','0','N','".$staff->firstname.' '.$staff->lastname."','','Ticket assigned to ".$staff->firstname.' '.$staff->lastname."','Ticket Assignment','html','','".date("Y-m-d H")."','0000-00-00 00')";It works. Even though, after assigning tickets, a blank page is shown and only one ticket at a time is being assigned. Trying to assign multiple tickets doesn't work.Same thing happens when you're merging tickets but if i change the query in there as well it doesn't do anything..