Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (44739,17492,18279,17981,44861,10402,17904,24438,18894,44870,44868,44836,44875,44884,44878,45518,18900,43800,45229,18650,44866,18042,37267,17092,44849,13922,30135,6609,44767,17527,44775,44669,17835,18237,17237,45517,44671,45515,45043,45180,45262,17278,13425,36472,5993,45051,17848,44855,45072,44856,44863,44854,8753,17703,44762,18353,14402,6862,45042,24411,17601,18719,18648,45177,30963,44764,45516,44865,18572,44689)
Unknown column 'np.person' in 'where clause'