Error: 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 's organic'' at line 1
Trace on: /home/planteea/public_html/include/class/db.class.php(389)
SQL: SELECT `id` FROM producatori WHERE `nume`='luke's organic'
SQL: #0 /home/planteea/public_html/include/class/db.class.php(389): DB::query('SELECT `id` FRO...')
#1 /home/planteea/public_html/include/class/db.class.php(409): DB::fetchAll('SELECT `id` FRO...')
#2 /home/planteea/public_html/controller/produse.php(154): DB::fetchOneColumn('SELECT `id` FRO...', 'id')
#3 /home/planteea/public_html/controller/produse.php(593): produseController->checkAttributes()
#4 [internal function]: produseController->index('cautare', 'producator', 'luke%27s-organi...', NULL)
#5 /home/planteea/public_html/include/class/router.class.php(183): call_user_func_array(Array, Array)
#6 /home/planteea/public_html/include/class/router.class.php(86): Router->_loadController()
#7 /home/planteea/public_html/include/class/router.class.php(64): Router->_run()
#8 /home/planteea/public_html/index.php(103): Router->init(Array)
#9 {main}