Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{person.id}}' at line 9 select viewexcel.* , countries.title AS country_title , degree.title As degree_title , categories.title AS category_title FROM viewexcel LEFT JOIN countries ON viewexcel.country = countries.id LEFT JOIN degree ON viewexcel.degree = degree.id LEFT JOIN categories ON viewexcel.categories = categories.id WHERE viewexcel.id = {{person.id}}