A PHP Error was encountered

Severity: Notice

Message: Undefined index: add_man

Filename: controllers/activity.php

Line Number: 489

Database Error

A Database Error Occurred

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 'and state in(8,11)' at line 1

select id,state from act_messagem where st_id = and state in(8,11)

Filename: /var/www/html/models/activity_model.php

Line Number: 197