SELECT "items".* FROM "items" WHERE ((name) ilike $1 and is_medicine=$2 and status=$3) ORDER BY name LIMIT $4