I am using mysql version in codeigniter and applied stored procedure for one of database operation and after running this . i want to run another query . so how can i run other query below the store procedure or close the connection
getting this error
Commands out of sync; you can't run this command now
here is additional code
This is my store procedure
$ret = $CI->db->query("call test_type($item_id,$test_id)");
now I want to run this query
$query = $CI->db->query("SELECT * FROM testing WHERE testing.test_type in ('" . $test_id . "') AND testing.test_item_id = '" . $item_id . "' ORDER BY testing.test_date DESC LIMIT 1");
Thanks in advance