Time : 10:59:17 SQLSTATE[42000]: Syntax error or access violation: 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 '['id'] and type=352' at line 1 Raw SQL : SELECT name FROM `p_contactperson` where party_id=Array['id'] and type=352