No database selected:SELECT a.sid, b.surveyls_title FROM `lime_surveys` AS a INNER JOIN `lime_surveys_languagesettings` AS b ON ( surveyls_survey_id = a.sid AND surveyls_language = a.language ) WHERE surveyls_survey_id=a.sid AND surveyls_language=a.language AND a.active='Y' AND a.listpublic='Y' AND ((a.expires >= '2019-12-12' AND a.useexpiry = 'Y') OR (a.useexpiry = 'N')) ORDER BY surveyls_title