I have this statement
SELECT * FROM table
where somenotuniquefield like '%\"$variable1\"%'
and primaryuniquefield = '$variable2' ";
Will this be slower than putting the unique field first? like so;
SELECT * FROM table
where primaryuniquefield = '$variable2'
and somenotuniquefield like '%\"$variable1\"%'";
It seems logical that the answer is yes but I want to know for sure before I go through and re order my MySQL statements.