{"action":"opened","issue":{"url":"https://api.github.com/repos/tgriesser/knex/issues/726","labels_url":"https://api.github.com/repos/tgriesser/knex/issues/726/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/knex/issues/726/comments","events_url":"https://api.github.com/repos/tgriesser/knex/issues/726/events","html_url":"https://github.com/tgriesser/knex/issues/726","id":60185098,"number":726,"title":"using knex.raw() inside knex.andWhere() ignores arguments","user":{"login":"hotaru355","id":6034403,"avatar_url":"https://avatars.githubusercontent.com/u/6034403?v=3","gravatar_id":"","url":"https://api.github.com/users/hotaru355","html_url":"https://github.com/hotaru355","followers_url":"https://api.github.com/users/hotaru355/followers","following_url":"https://api.github.com/users/hotaru355/following{/other_user}","gists_url":"https://api.github.com/users/hotaru355/gists{/gist_id}","starred_url":"https://api.github.com/users/hotaru355/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotaru355/subscriptions","organizations_url":"https://api.github.com/users/hotaru355/orgs","repos_url":"https://api.github.com/users/hotaru355/repos","events_url":"https://api.github.com/users/hotaru355/events{/privacy}","received_events_url":"https://api.github.com/users/hotaru355/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-07T02:12:08Z","updated_at":"2015-03-07T02:12:08Z","closed_at":null,"body":"I am adding a `WHERE` clause the following way and it seems that the last 2 arguments are getting ignored. Is there something I am doing wrong?\r\n\r\n    var sql = knex.andWhere(\r\n      knex.raw('DATE_ADD(UTC_TIMESTAMP(), INTERVAL ? DAY)', 7), '>=', 'mytable.mydate');\r\n    console.log(sql.toString()); // SELECT * WHERE DATE_ADD(UTC_TIMESTAMP(), INTERVAL ? DAY)', 7)\r\n    // what happened to the rest of the WHERE clause ?"}}