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