Hi guys I am getting syntax error on PHQL query while I can get result when I directly run it in MySQL..
Syntax error, unexpected token INTEGER(1), near to ' DAY) WHERE F.fId= '2' AND T.tId = '1' ', when parsing: SELECT F.* FROM App\Models\FTable AS F INNER JOIN App\Models\TTable AS T ON F.startDate = ADDDATE(T.endDate,INTERVAL 1 DAY) WHERE F.fId= '2' AND T.tId = '1'