I use laravel 4 PHP Framework when I write this method:
where_email_and_password($email, $password)
show this error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column '_email_and_password' in 'where clause' (SQL: select * from
users
where_email_and_password
= ? limit 1) (Bindings: array ( 0 => '[email protected]', ))
See code and error: http://i.stack.imgur.com/dn85M.png
where
is a keyword in Eloquent, so maybe change the function name to justemail_and_password
– Tim Withers