2014-08-12 16:15:45 SELECT * FROM treeman as t INNER JOIN dt_articles as a ON (t.item_id=a.item_id) WHERE t.item_id= AND active='1' 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 'AND active='1'' at line 1