issue with mysql query 'where' priority
Advertisements Im having issues with this mysql query, i need it to bring ONLY the files that have the condition WHERE st.class_id in (‘%s’) as principal, and the other conditions as secundary, tried changing the or’s to and’s with no luck, thanks in advance. $wpdb->get_results($wpdb->prepare("SELECT `st`.id,`st`.sub_name,`st`.stime,`st`.edate FROM {$_tables[‘subject’]} AS st WHERE `st`.class_id in (‘%s’) and… Read More issue with mysql query 'where' priority