//= require jquery-ui/datepicker
SELECT op.parcel_cn, op.id
FROM objects_process AS op
WHERE op.status IS NULL
SELECT op.parcel_cn, op.id, o.area_value
FROM objects_process AS op
JOIN objects_copy AS o
ON op.parcel_cn = o.parcel_cn
ON op.parcel_cn = o.parcel_cn
иWHERE op.status IS NULL
т.е. нет таких записей, которые бы удовлетворяли сразу обоим условиям SELECT * FROM :table WHERE
company_id = :company_id
OR parent_id = (
SELECT id FROM :table WHERE company_id = :company_id)
OR parent_id IN (
SELECT id FROM :table WHERE parent_id = (
SELECT id FROM :table WHERE company_id = :company_id))