sql.LastError
Example
Reports all SQL errors into console automatically. Can help on debugging or testing.
Output: After running 
sql.Query("SELECT") will print [SQL Error] incomplete input in the console.
			Garry's Mod 
		
			Rust 
		
			Steamworks 
		
			Wiki Help