No database selected:SELECT * FROM `lime_surveys` WHERE sid=77854 and active='Y'