SQL Query Error (SELECT * FROM pensya WHERE 1 AND ID_KRN = AND ID_MASLUL_RISHUY = ORDER BY TKF_DIVUACH DESC) : 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 'AND ID_MASLUL_RISHUY = ORDER BY TKF_DIVUACH DESC' at line 2