ORDER BY CASE WHEN dayID = @dayID THEN 0 ELSE 1 END, dayID;
But don't use string iterpolation to pass the variable from PHP to your SQL query; that will leave your code vulnerable to SQL Injection
]. Use a parameterised query instead.
PHP: SQL Injection - Manual