PDOException Object ( [message:protected] => SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [string:Exception:private] => [code:protected] => 42000 [file:protected] => /u/html/alcaldia2022v04/despliegue.php [line:protected] => 98 [trace:Exception:private] => Array ( [0] => Array ( [file] => /u/html/alcaldia2022v04/despliegue.php [line] => 98 [function] => prepare [class] => PDO [type] => -> [args] => Array ( [0] => DELETE FROM migas WHERE id > ) ) ) [previous:Exception:private] => [errorInfo] => Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 ) ) PDOException Object ( [message:protected] => SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [string:Exception:private] => [code:protected] => 42000 [file:protected] => /u/html/alcaldia2022v04/funciones.php [line:protected] => 11 [trace:Exception:private] => Array ( [0] => Array ( [file] => /u/html/alcaldia2022v04/funciones.php [line] => 11 [function] => prepare [class] => PDO [type] => -> [args] => Array ( [0] => SELECT id, idparent FROM categories WHERE id = ) ) [1] => Array ( [file] => /u/html/alcaldia2022v04/despliegue.php [line] => 143 [function] => buscar_padre [args] => Array ( [0] => ) ) ) [previous:Exception:private] => [errorInfo] => Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 ) )