MySQL error in line 47 in /home/aliuemat/

MySQL returned: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) INNER JOIN abb1_threads ON abb1_threads.t' at line 23

MySQL errorno. 1064

Should this error have occured unexpectedly, please contact the forum administrator.

ABB Error Code: 2 delete.php