SQLSTATE[42S22]: Column not found: 1054 Unknown column 'between' in 'where clause'
The SQL being executed was:
SELECT COUNT(*) FROM (SELECT `js`.`ID`, concat(js.FirstName," ",js.FatherName," ",js.LastName) as fullname FROM `jobseeker` `js` LEFT JOIN `jobseekerskills` ON js.ID = jobseekerskills.FKJobSeekerID LEFT JOIN `educationalcertificates` `ec` ON js.ID = ec.FKJobSeekerID WHERE `between` BETWEEN 'js.BirthDate' AND '1900-01-01 00:00:00' GROUP BY `js`.`ID`, `js`.`FirstName`) `c`
what causes the following yii\db\Query to produce the result query shown bellow, notice the between written twice in mysterious way