If I want to edit a photo I get this error :
Query: SELECT p.id,p.cat,c.catname FROM photos p LEFT JOIN categories c ON c.id=p.cat WHERE p.storeid=4 OR p.id=
Result: 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 '' at line 3