How to use 'AS' in cakephp 4 query?

Viewed 76

How to add AS in cake php query?

$table = $this
->find()
->select(['id', 'fname AS first_name'])

When i run it "check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS "

enter image description here

1 Answers
Related