i\'ve been staringly blanky at this error and can\'t seem to know what the problem is.When i run the query i get this error:
unexpected T_ENCAPSED_AND
In my case, heredoc caused the issue. There is no problem with PHP version 7.3 up. Howerver, it error with PHP 7.0.33 if you use heredoc with space.
My example code
$rexpenditure = <<
$row->payment_referencenumber
$row->payment_requestdate
$row->payment_description
$row->payment_fundingsource
$row->payment_agencyulo
$row->payment_agencyproject
$$row->payment_disbustment
$row->payment_payeename
$row->payment_processpayment
Expenditure;
It will error if there is a space on PHP 7.0.33.