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 'order by sortorder' at line 1

select m.mapID, m.title, m.thumbnail, m.print, m.fullsize from maps m, map2property m2p where m.mapID=m2p.mapID and m2p.propertyID= order by sortorder

[TEP STOP]