A Database Error Occurred

Error Number: 1064

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 '.`image_proj_id INNER JOIN architects ON` `architects`.`archi_id=architect_pr...' at line 2

SELECT * FROM `project_images INNER JOIN architect_projects ON architect_projects`.`proj_id=project_images`.`image_proj_id INNER JOIN architects ON` `architects`.`archi_id=architect_projects`.`proj_archi_id` WHERE `image_cat_id` = '19' AND `image_status` = 'Enable' AND `proj_status` = 'Enable' AND `archi_status` = 'Enable' ORDER BY `image_added` DESC

Filename: models/Sqlmodel.php

Line Number: 163