Error in the consult.. You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY layout.date_created' at line 12SELECT layout.*, user.avatar AS user_avatar, CONCAT(user.first_name, " ", user.last_name) AS user_name FROM oak_franchise_pages_layouts AS layout LEFT JOIN oak_users AS user ON (layout.modified_by = WHERE 1 AND = ORDER BY layout.date_created;