An Error Was Encountered
Error Number: 1064
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 1
select c.* from TextTable a left join TextXPhotoTable b on a.ID=b.TextID left join PhotoTable c on b.PhotoID=c.ID where a.ID=