Wystąpił błąd bazy danych.

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY `p`.`p_id` DESC LIMIT 1' at line 9

SELECT `p`.`p_id`, `t_short` FROM (`aroteam_n2_products` p) JOIN `aroteam_n2_translation_storage` t ON `p`.`p_id` = `t`.`t_id` JOIN `aroteam_n2_products_order` po ON `p`.`p_id` = `po`.`p_id` WHERE `t`.`t_type` = 'product' AND `t`.`l_id` = '1' AND `p`.`p_active` = 1 AND `p`.`p_id` > ORDER BY `p`.`p_id` DESC LIMIT 1

Filename: /home/retrus/public_html/modules/kategoria/models/kategoria_model.php

Line Number: 96