Use mysql_real_escape_string() for SQL queries