I got some problems with the following sql statement:
$query= $this->db->get_where('navigation', 'linkname IS NOT NULL
AND parent IS NULL
AND type="main" //this doesn't work!!
AND ORDER BY sortnumber ASC');
How can I add type=”main” in a reasonable way into this statement?
Thanks a lot!
I think the error is that you should only write
ORDER BY, notAND ORDER BY.