What is the property way to insert an IF statement into a mysql query?
SELECT * FROM table WHERE (column1 > 'value')
What if I wanted to put a condition within that query like:
SELECT * FROM table WHERE ((column1 > 'value')and(IF column2 = 'n' THEN WHERE column3 > '5'))