retlav
2010-07-21 02:04:15 UTC
This is the query that i have now and i want use 2 operators on the IN statement. can any one tell me what i am doing wrong...
$get_catalog_sql_p = "SELECT * FROM instructionalprograms where major_code IN (SELECT major_code FROM mycatalogtrack_p WHERE session_id = '".$_COOKIE["PHPSESSID"]."' ORDER BY date_added)";
Using 2 operands in a join query (this is the one that's not working...
$get_catalog_sql_p = "SELECT * FROM instructionalprograms where major_code, year IN (SELECT major_code, year FROM mycatalogtrack_p WHERE session_id = '".$_COOKIE["PHPSESSID"]."' ORDER BY date_added)";