Hola
Este es el foro de PHP. Nada que ver con SQL
Prueba así
Código SQL:
Ver original$result = $this->database->Query("SELECT name, email FROM users WHERE name='$name' AND email='$email'");
$data['name_available'] = ($this->database->numRows($result) > 0) ? FALSE : TRUE;
$data['valid_name'] = (strlen($name) < 3 || strlen($name) > 25 || eregi("[#%\(\)<>{})\^\$]", $name)) ? FALSE : ((strlen($email) < 5 || !eregi("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z]+)+$", $email))) ? FALSE : TRUE; ;
Suerte