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 (44867,10402,45567,43800,18650,37267,8753,44764,44853,44739,18237,24411,45051,6875,17114,30986,30135,13988,18042,18353,6609,17981,44884,17703,17237,4686,18652,24441,14402,17755,24438,44870,44849,45180,45042,36472,31354,19057,17556,44745,44685,45517,6862,28530,17839,44866,32454,17278,44875,18427,44854,17092,13922,13425,45177,18301,44689,45262,17904,16885,44669,39676,18446,18185,44845,45286,44836,44863,44674,5410)
Unknown column 'np.person' in 'where clause'