I have tried to make some query in laravel, sometimes work, but sometime not work, the problem is, result of query i made, its not same with actual value on table database, i have no idea to fix that, and iam have a trying to searching this problem in google or stackoverflow, but cannot find issue like that, can anyone tell me about what this problem.
Query SQL
SELECT id, parent_id, status, name FROM works WHERE (status != 'CANCELED' AND deleted_at IS NULL) AND (parent_id = 20 AND type = 'TASK')
Query Laravel
DB::select("SELECT id, parent_id, status, name FROM works WHERE (status != 'CANCELED' AND deleted_at IS NULL) AND (parent_id = 20 AND type = 'TASK')")
result of end data with id 66 its cannot founded in table, so iam realy confused, in table iam search data with id 66 its not found, but in result query of laravel made the data its show.
i feel like watching horor movie .