title: Getting column name ambigous
body: <p>I have query in which i am getting column 'month' ambigious . I am trying with following query. Please check nd help me.</p>
  
  <pre><code>SELECT SC.name as sc,
         B.name as brand,
         COUNT(T.id) as tc,
         SUM(IF(is_category_present = 1, 1, 0)) as BASE
  FROM outlet_categories OC 
       INNER JOIN transactions T ON OC.outlet_id = T.outlet_id 
       inner join outlets O on O.id = T.outlet_id 
       inner join brands B on T.brand_id = B.id 
       inner join sale_channels SC on SC.id =  O.sale_channel_id
  WHERE T.month = month
  </code></pre>