From 87bcfe5b30a5da96671432541811a529389ac576 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Tue, 21 Jul 2020 10:42:42 +0300 Subject: [PATCH] Fatal error: Uncaught Krugozor\Database\Mysql\Exception: Krugozor\Database\Mysql\Mysql::query: Unknown column 'dressed' in 'where clause' --- main.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.php b/main.php index b362fa2..5fcb084 100644 --- a/main.php +++ b/main.php @@ -963,22 +963,22 @@ if (input::get('edit')) { 12 OR type != 22 OR type != 23 OR type != 24) AND setsale = 0'; + $data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot = 0 AND (type > 12 OR type != 22 OR type != 23 OR type != 24) AND setsale = 0'; } if ($_SESSION['razdel'] == 3) { - $data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed = 0 AND type >= 80 AND type <= 89 AND setsale = 0'; + $data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot = 0 AND type >= 80 AND type <= 89 AND setsale = 0'; } if ($_SESSION['razdel'] == 4) { - $data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed = 0 AND type = 200 AND setsale = 0'; + $data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot = 0 AND type = 200 AND setsale = 0'; } if ($_SESSION['razdel'] == 5) { - $data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed = 0 AND type = 199 AND setsale = 0'; + $data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot = 0 AND type = 199 AND setsale = 0'; } $data = db::c()->query($data_query, $_SESSION['uid']);