Trying to access array offset on value of type null

/data/tem.k404.net/cell/list/p/side/a304/f27.php - 21

Trying to access array offset on value of type null

/data/tem.k404.net/cell/list/p/side/sql/sql_p02.php - 8

ERROR!

ERROR!

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 'and l.modelid=8 and l.ismenu1=1 and d.siteid=1665 and d.text_type=5 and d.la' at line 7