Hello I am not sure about my query :
IF((SELECT table2.active FROM table2) = 0) SELECT table2.price FROM table2 ELSE IF ((SELECT table2.active FROM table2