Fixed mysql call