Suppose there is data obtained via GET
$objectIds = $_GET['ids]; and there is a sample for these $ objectIds
$model->exec("select * from table_name where id IN(".$objectIds.")->getAll(); How to correctly process the received data from $ _GET, can somehow filter?
$objectIds? If there is a string like "1,2,3,4" then your example is working. Another thing if you need protection from fake requests. - koks_rs