Request:select ap_sets.id,ap_sets.pic,ap_sets.folder,ap_model.folder as mfolder,ap_model.id as mid,ap_model.name as mname,ap_model.bdate,ap_model.bplace,ap_model.occup,ap_model.nation FROM ap_model,ap_sets where ap_sets.appr=1 and (ap_sets.view+0)<=20160629 and ap_model.id=ap_sets.model and ap_sets.pic>0 and ap_sets.id between132 and 139 order by ap_sets.id
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 'between132 and 139 order by ap_sets.id' at line 1