Error
-
This throws an error :
SELECT distinct(meta_value) FROM wp_usermeta where meta_key = ‘billing_state’even though I run the same query in phpMyAdmin.
Here’s the error :
Fatal error: Uncaught exception ‘MDatabaseException’ with message ‘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 ‘\’billing_state\” at line 1 SQL=SELECT distinct(meta_value) FROM wp_usermeta where meta_key = \’billing_state\” in C:\xampp\htdocs\wordpress431\wp-content\miwi\framework\database\database\mysql.php:300 Stack trace: #0 C:\xampp\htdocs\wordpress431\wp-content\miwi\framework\database\database.php(410): MDatabaseMySQL->execute() #1 C:\xampp\htdocs\wordpress431\wp-content\plugins\miwosql\admin\models\miwosql.php(234): MDatabase->loadAssocList() #2 C:\xampp\htdocs\wordpress431\wp-content\plugins\miwosql\admin\models\miwosql.php(53): MiwosqlModelMiwosql->_getHtmlTable(‘SELECT distinct…’, 0, Object(MDatabaseMySQL)) #3 C:\xampp\htdocs\wordpress431\wp-content\miwi\framework\application\component\view.php(124): MiwosqlModelMiwosql->getData() #4 C:\xampp\htdocs\wordpress431\wp-content\plugins\miwosql\admin\views\miwosql\view.html in C:\xampp\htdocs\wordpress431\wp-content\miwi\framework\database\database\mysql.php on line 300
The topic ‘Error’ is closed to new replies.