I upgraded from Godaddy to blue host and now I'm getting this error:
Syntax error or access violation: 1055 Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'customeTable.fromuser' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by' in
$statement = $db->prepare("SELECT * FROM(SELECT DISTINCT(thread_id) AS
thread_id, fromuser, touser, aDeleted, bDeleted, avatar, message, seen,
time FROM conversations WHERE fromuser=:username AND bDeleted=0 OR
touser=:username AND aDeleted =0 ORDER BY time DESC) customeTable GROUP
BY thread_id ORDER BY time DESC");
$statement->bindParam("username", $username, PDO::PARAM_STR) ;
$statement->execute();