Welcome Guest, Not a member yet? Register   Sign In
Active record error but normal query runs fine
#1

[eluser]stef25[/eluser]
I've got an active record query that returns the error below. I've checked the column name over and over, it's definitely there and the query that it prints out itself below works fine when run in phpmyadmin.

What am I missing?

Code:
Unknown column 'test' in 'where clause'

SELECT * FROM (`users`) WHERE `test` = 'bla' AND `test1` = 'go'

in response to

Code:
function check_user($unique_id, $provider)
    {
        $this->db->where('test', $unique_id);
        $this->db->where('test1', $provider);
        return $this->db->get('users')->result_array();        
    }




Theme © iAndrew 2016 - Forum software by © MyBB