Welcome Guest, Not a member yet? Register   Sign In
where_in null and 1
#3

This looks more of a mysql question. I don't think you can use NULL inside a WHERE IN clause.
Try 'WHERE Login = 1 OR Login IS NULL'

You could use $db->get_compiled_select() to see how CI has constructed the query and then try and make it work in phpmyadmin or whatever.
Reply


Messages In This Thread
where_in null and 1 - by ulas - 04-03-2019, 06:46 AM
RE: where_in null and 1 - by php_rocs - 04-03-2019, 01:33 PM
RE: where_in null and 1 - by adamoli - 04-03-2019, 02:34 PM
RE: where_in null and 1 - by ulas - 04-04-2019, 04:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB