Zend Framework: How to include an OR statement in an SQL fetchAll()
- by Scoobler
I am trying to build the following SQL statement:
SELECT users_table.*, users_data.first_name, users_data.last_name
FROM users_table
INNER JOIN users_data ON users_table.id = user_id
WHERE (users_table.username LIKE '%sc%')
OR (users_data.first_name LIKE '%sc%')
OR (users_data.last_name LIKE '%sc%')
I have the following code at the…