{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/7191","labels_url":"https://api.github.com/repos/laravel/framework/issues/7191/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/7191/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/7191/events","html_url":"https://github.com/laravel/framework/issues/7191","id":55952876,"number":7191,"title":"havingRaw is not working ","user":{"login":"baao","id":9019906,"avatar_url":"https://avatars.githubusercontent.com/u/9019906?v=3","gravatar_id":"","url":"https://api.github.com/users/baao","html_url":"https://github.com/baao","followers_url":"https://api.github.com/users/baao/followers","following_url":"https://api.github.com/users/baao/following{/other_user}","gists_url":"https://api.github.com/users/baao/gists{/gist_id}","starred_url":"https://api.github.com/users/baao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baao/subscriptions","organizations_url":"https://api.github.com/users/baao/orgs","repos_url":"https://api.github.com/users/baao/repos","events_url":"https://api.github.com/users/baao/events{/privacy}","received_events_url":"https://api.github.com/users/baao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-29T20:33:31Z","updated_at":"2015-01-29T20:33:31Z","closed_at":null,"body":"\r\n\r\nI have a very strange issue with a query in laravel.\r\n\r\nThis part:\r\n\r\n    ->havingRaw('MIN(pr.landed_price) > (pro.price + pro.shipping)')\r\n\r\nthrows an error saying\r\n\r\n    column not found\r\n\r\nThis is strange because\r\n\r\n- the column definitely exists\r\n- the query is running with laravel 4 without a problem\r\n- I have checked both raw query outputs (L4 & L5) with ->toSql(); and they are completely identical.\r\n- Running the query without laravel works, too.\r\n\r\nIs there a known bug, anything else I don't see - and how can I solve this?\r\n"}}