While parameterized queries are the preferred method, sole() adds an extra layer of protection when using raw queries, especially when only one record should match.

Read more

Categories: PHP