SELECT * FROM `uchome_space` AS `a` LEFT JOIN `uchome_spacefield` AS `b` on `a`.`uid`=`b`.`uid` WHERE `a`.`birthprovince` like (SELECT birthprovince FROM `uchome_spacefield` where uid= $_SGLOBAL[supe_uid]) LIMIT 0,5
ERROR: 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 '[supe_uid]) LIMIT 1' at line 1
SELECT * FROM `gbkis_uch_space` AS `space` LEFT JOIN `gbkis_uch_spacefield` AS `spacefield` on `space`.`uid`=`spacefield`.`uid` WHERE `spacefield`.`birthcity`='北京' AND `space`.`groupid` in ('1','2','3','5','6','7') ORDER BY `space`.`friendnum` DESC
SELECT * FROM `gbkis_uch_blog` AS `blog` LEFT JOIN `gbkis_uch_spacefield` AS `spacefield` on `blog`.`uid`=`spacefield`.`uid` WHERE `spacefield`.`birthcity`='金华' AND `blog`.`friend`='0' ORDER BY `blog`.`dateline` DESC