Help with MySQL. Table exists but sql.TableExists returns false

this is the code I got:

[lua]function CheckMySQLTables()

print("**************************************

"…
"Checking MySQL DataBases
"…
"
********************************
")

if sql.TableExists("player_info") && sql.TableExists("player_chars") then
	
	print("********MySqlTables Loaded!******")
	
else
	
	if (!sql.TableExists("player_info")) then 
		
		local query="CREATE TABLE player_info ( steamid varchar(255), unique_id varchar(255), money int, strength int, perception int, charisma int, endurance int, intelligence int, agility int)"
		local result = sql.Query(query)
		
		if (sql.TableExists("player_info")) then
			
			print("******Ok All went good player_info has been created!***")
			
		else
			
			
			print("***There was an error: "..sql.LastError(result).."

")
return false
end

	end
	if (!sql.TableExists("player_chars")) then
		
		local query="CREATE TABLE player_info ( steamid varchar(255), numberchars int)"
		
		local result = sql.Query(query)
		
		if (sql.TableExists("player_chars")) then
			
			print("******Ok All went good player_info has been created!***")
			
		else
			local _error = sql.LastError(result) or ""
			print("****There was an error: ".._error.."

")
return false
end

	end
end
return true

end[/lua]
and this the error:



**************************************
**********Checking MySQL DataBases****
**************************************

****There was an error: table player_info already exists



Well as you see I check if the table exists if yes skip… but well they are getting created eitherway…


CREATE TABLE IF NOT EXISTS mytable

Ah thank you! I will try!