Fixed mysql statement error