I have the following SQL Query
SELECT gsu.*, gsuo.*, gsob.*, gsued.*
FROM gs_users gsu
INNER JOIN gs_user_objects gsuo
ON gsu.id = gsuo.user_id
INNER JOIN gs_objects gsob
ON gsuo.imei = gsob.imei
INNER JOIN gs_user_events_data gsued
ON gsuo.imei = gsued.imei
WHERE NOT gsued.status = 'Actioned' AND gsuo.user_id = '62'
OR gsuo.user_id = '14'
GROUP BY gsued.dt_tracker
ORDER BY gsued.dt_tracker
When I use the above query the first section of "WHERE NOT" and "AND" is executed and filtered, but after the "OR" section with the 14 is executed but the "WHERE NOT" clause is not executed.
I have tried brackets as well but no result on the filter