Warning: Trying to access array offset on value of type bool in /home/yakhcha1/public_html/classes/app/Hom.php on line 47

Warning: Trying to access array offset on value of type bool in /home/yakhcha1/public_html/classes/app/Hom.php on line 48
SQLSTATE[42000]: Syntax error or access violation: 1064 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 'AND NOT id =' at line 1
Fatal error: Uncaught Error: Call to a member function fetchAll() on null in /home/yakhcha1/public_html/classes/app/Hom.php:49 Stack trace: #0 /home/yakhcha1/public_html/sobhan.php(180): Hom->show(NULL) #1 /home/yakhcha1/public_html/router/them.php(12): uri('city/{id}', 'Hom', 'show') #2 /home/yakhcha1/public_html/sobhan.php(185): require_once('/home/yakhcha1/...') #3 {main} thrown in /home/yakhcha1/public_html/classes/app/Hom.php on line 49