From 9ce55e1f9e1fec26b44a367263cd6c9a73c270a4 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 May 2015 16:52:59 -0400 Subject: Fix query with ambiguous column name --- app/Model/TaskFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/Model/TaskFilter.php b/app/Model/TaskFilter.php index 1fdf0a50..134f67cd 100644 --- a/app/Model/TaskFilter.php +++ b/app/Model/TaskFilter.php @@ -68,7 +68,7 @@ class TaskFilter extends Base */ public function excludeTasks(array $task_ids) { - $this->query->notin('id', $task_ids); + $this->query->notin(Task::TABLE.'.id', $task_ids); return $this; } @@ -82,7 +82,7 @@ class TaskFilter extends Base public function filterById($task_id) { if ($task_id > 0) { - $this->query->eq('id', $task_id); + $this->query->eq(Task::TABLE.'.id', $task_id); } return $this; -- cgit v1.2.3