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 (44711,17527,44767,45042,39676,17703,44745,18572,22509,18286,43800,28313,44853,17335,45561,28530,44878,44870,24441,6875,44848,45421,24411,17848,44869,32454,44835,44858,18652,19057,44689,44867,44845,18172,5410,17351,18996,44640,44873,4686,18688,16885,45517,18185,18301,45180,18446,14402,45286,45229,18650,10402,18237,5993,44861,17771,17756,13425,6609,44868,18794,44669,45177,18042,44674,34194,17092,44865,17755,18894)
Unknown column 'np.person' in 'where clause'