Is it possible in CodeIgniter or PHP to extend a MySQL statement. For example. If I have $query1. Can I add onto $query1 in another $this->db->query() instance:
$query1 = this->db->query("SELECT * FROM users WHERE a = b");
$query1(or 2) = $this->db->query("AND b = c");
Put your statement in a var and extend the string if need: