Query : SELECT distinct `locationid` , `name`, `name_alias` FROM `location`, `company_link_location` WHERE `location`.`locationid` = `company_link_location`.`location_id` AND `parentid` = ORDER BY Rand() LIMIT 0, 16
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 'ORDER BY Rand() LIMIT 0, 16' at line 5