my query is same as this:
SET @increment := 1;  
SELECT @increment := @increment + 1, username from aTable  but I receive an error because "SET @increment := 1;" is before SELECT query:  
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error
my query is working on PHPMyAdmin.