We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Parameterized custom queries

I am a Phalcon 3.3.1 newbie.

What I'm trying to do is:

$sql = "SELECT * FROM some_table WHERE id = ? AND status = ? AND author = ?";

$this->db->query($sql, array(3, 'live', 'Rick'));

I have not found any docs relating to creating parameterized custom queries.

How can I create parameterized custom queries?

Thank you for pointing me to this.