I'm getting error near the if statement...don't know why
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if @a=0 then select @a' at line 1
set @a = (SELECT COUNT(*) FROM hi where x=33 and y=-4);
if @a = 0 then select @a;
end if;