
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 'AND `type` = 'image_cover' ORDER BY sorting DESC' at line 1 [string:Exception:private] => [code:protected] => 42000 [file:protected] => /app-files/public_html/includes/php/class.database_pdo.php [line:protected] => 152 [trace:Exception:private] => Array ( [0] => Array ( [file] => /app-files/public_html/includes/php/class.database_pdo.php [line] => 152 [function] => execute [class] => PDOStatement [type] => -> [args] => Array ( [0] => Array ( ) ) ) [1] => Array ( [file] => /app-files/public_html/includes/php/class.php [line] => 3104 [function] => executeGetAll [class] => DATABASE_PDO [type] => -> [args] => Array ( [0] => PDOStatement Object ( [queryString] => SELECT * FROM attachment WHERE `module` = 'public_generated_content' AND `data_id` = AND `type` = 'image_cover' ORDER BY sorting DESC ) [1] => Array ( ) [2] => ) ) [2] => Array ( [file] => /app-files/public_html/includes/php/class.php [line] => 1542 [function] => getAttsList [class] => MODEL [type] => -> [args] => Array ( [0] => public_generated_content [1] => [2] => image_cover [3] => DESC ) ) [3] => Array ( [file] => /app-files/public_html/index.php [line] => 554 [function] => getTableDetail [class] => MODEL [type] => -> [args] => Array ( [0] => public_generated_content [1] => Array ( [0] => image_cover ) [2] => 2 [3] => 1 ) ) ) [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 'AND `type` = 'image_cover' ORDER BY sorting DESC' at line 1 ) )