How to make Left Join Api

Please, help me for how to make left join api correctly

> <br /> <b>Fatal error</b>: Uncaught Phalcon\Mvc\Model\Exception: Syntax error, unexpected token COMMA, near to ' PrfTeachers as c WHERE a.isaccept='Y' AND a.idprfteacher=c.idteachers AND b.studentid = :id:', when parsing: SELECT c.*, b.rating, b.ratingdate, b.ratingcomments FROM Transactions AS a LEFT JOIN Rating AS b ON a.idprfteacher = b.teacherid, PrfTeachers as c WHERE a.isaccept='Y' AND a.idprfteacher=c.idteachers AND b.studentid = :id: (233) in /var/www/html/apigurules/index.php:180

You have a , syntax on LEFT JOIN Rating AS b ON a.idprfteacher = b.teacherid, PrfTeachers as c WHERE a.isaccept='Y

PrfTeachers as c should also have a Left Join to it