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 '\nfrom module_photo1_photos where id=362 order by id desc' at line 1
select id, name, filename1, filename2, description, price\nfrom module_photo1_photos where id=362 order by id desc