How can I troubleshoot this error?
SELECT user_id, CONCAT(firstname, ' ', lastname) AS fullname FROM user AND status = '1' in .../database/mysql.php on line 49
This is the actual code:
$query = $this->db->query("SELECT user_id, CONCAT(firstname, ' ', lastname) AS fullname FROM " . DB_PREFIX . "user " . $except . " AND status = '1'");
I have checked the fields and all my users have a first/last name in their profile.
you need a where clause – not just starting with AND