ţ12142
ԭ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 yw_scenicphoto.photoid=cy_photo.photoid
AND yw_scenic.id=yw_scen' at line 5
SQL䣺
select cy_photo.photopath,yw_scenicphoto.recommendation,yw_scenic.id
from yw_scenic,yw_scenicphoto,cy_photo
where yw_scenic.cityid=yw_scenicphoto.cityid
AND yw_scenic.cityid=
AND yw_scenicphoto.photoid=cy_photo.photoid
AND yw_scenic.id=yw_scenicphoto.scenicid
AND yw_scenicphoto.undercarriage=1
AND yw_scenicphoto.precommendation=6
order by yw_scenicphoto.recommendation
limit 0,4
¼!