I want help in forming this query using class object wrapper(MysqliDb ). You can find here (MysqliDb )
This is the query i needed to convert
SELECT * FROM (SELECT * FROM users WHERE eventId=34) as t2 WHERE name like "alex" or email like "alex";
For Example
$db = getDbInstance();
$db->where('eventId', 34);
$status = $db->get('users');
//SELECT * FROM USERS WHERE eventId=34