<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2026-02-22 01:51:51 --> Query error: Unknown column 'status' in 'where clause' - Invalid query: SELECT *
FROM `users`
WHERE `email` = 'bonash@gmail.com'
AND `password` = '58169ee55b7a2b2d'
AND `status` = 'active'
 LIMIT 1
ERROR - 2026-02-22 01:51:51 --> Severity: error --> Exception: Call to a member function num_rows() on false /var/www/html/posacct_project/posacct/pos/apps/models/MUsers.php 31
ERROR - 2026-02-22 02:11:16 --> Query error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'posacct_pos_db.sales.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by - Invalid query: SELECT sales.id, sales.company_id, sales.sales_date, sales.item_id, SUM(sales.quantity) AS total_qty, items.name AS item_name
				FROM sales_details AS sales
				LEFT JOIN items ON sales.item_id = items.id
				WHERE sales.company_id = 1
				AND sales.sales_date > SUBDATE( CURDATE(), 7 )
				GROUP BY sales.item_id
				ORDER BY sales.quantity DESC
				LIMIT 5
ERROR - 2026-02-22 02:11:16 --> Severity: error --> Exception: Call to a member function result_array() on false /var/www/html/posacct_project/posacct/pos/apps/models/MSales_details.php 53
ERROR - 2026-02-22 02:11:19 --> Query error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'posacct_pos_db.sales.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by - Invalid query: SELECT sales.id, sales.company_id, sales.sales_date, sales.item_id, SUM(sales.quantity) AS total_qty, items.name AS item_name
				FROM sales_details AS sales
				LEFT JOIN items ON sales.item_id = items.id
				WHERE sales.company_id = 1
				AND sales.sales_date > SUBDATE( CURDATE(), 7 )
				GROUP BY sales.item_id
				ORDER BY sales.quantity DESC
				LIMIT 5
ERROR - 2026-02-22 02:11:19 --> Severity: error --> Exception: Call to a member function result_array() on false /var/www/html/posacct_project/posacct/pos/apps/models/MSales_details.php 53
ERROR - 2026-02-22 02:12:33 --> Query error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'posacct_pos_db.sales.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by - Invalid query: SELECT sales.id, sales.company_id, sales.sales_date, sales.item_id, SUM(sales.quantity) AS total_qty, items.name AS item_name
				FROM sales_details AS sales
				LEFT JOIN items ON sales.item_id = items.id
				WHERE sales.company_id = 1
				AND sales.sales_date > SUBDATE( CURDATE(), 7 )
				GROUP BY sales.item_id
				ORDER BY sales.quantity DESC
				LIMIT 5
ERROR - 2026-02-22 02:12:33 --> Severity: error --> Exception: Call to a member function result_array() on false /var/www/html/posacct_project/posacct/pos/apps/models/MSales_details.php 53
ERROR - 2026-02-22 02:12:35 --> Query error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'posacct_pos_db.sales.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by - Invalid query: SELECT sales.id, sales.company_id, sales.sales_date, sales.item_id, SUM(sales.quantity) AS total_qty, items.name AS item_name
				FROM sales_details AS sales
				LEFT JOIN items ON sales.item_id = items.id
				WHERE sales.company_id = 1
				AND sales.sales_date > SUBDATE( CURDATE(), 7 )
				GROUP BY sales.item_id
				ORDER BY sales.quantity DESC
				LIMIT 5
ERROR - 2026-02-22 02:12:35 --> Severity: error --> Exception: Call to a member function result_array() on false /var/www/html/posacct_project/posacct/pos/apps/models/MSales_details.php 53
ERROR - 2026-02-22 02:19:03 --> Query error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'posacct_pos_db.sales.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by - Invalid query: SELECT sales.id, sales.company_id, sales.sales_date, sales.item_id, SUM(sales.quantity) AS total_qty, items.name AS item_name
				FROM sales_details AS sales
				LEFT JOIN items ON sales.item_id = items.id
				WHERE sales.company_id = 1
				AND sales.sales_date > SUBDATE( CURDATE(), 7 )
				GROUP BY sales.item_id
				ORDER BY sales.quantity DESC
				LIMIT 5
ERROR - 2026-02-22 02:19:03 --> Severity: error --> Exception: Call to a member function result_array() on false /var/www/html/posacct_project/posacct/pos/apps/models/MSales_details.php 53
ERROR - 2026-02-22 09:38:43 --> Query error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'posacct_pos_db.sales.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by - Invalid query: SELECT sales.id, sales.company_id, sales.sales_date, sales.item_id, SUM(sales.quantity) AS total_qty, items.name AS item_name
				FROM sales_details AS sales
				LEFT JOIN items ON sales.item_id = items.id
				WHERE sales.company_id = 1
				AND sales.sales_date > SUBDATE( CURDATE(), 7 )
				GROUP BY sales.item_id
				ORDER BY sales.quantity DESC
				LIMIT 5
ERROR - 2026-02-22 09:38:43 --> Severity: error --> Exception: Call to a member function result_array() on false /var/www/html/posacct_project/posacct/pos/apps/models/MSales_details.php 53
