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 (18688,44851,45229,18446,18042,17835,44878,44861,3,18981,28313,4686,44765,18185,6875,44766,45180,44836,43800,24438,44775,39676,44853,45515,13425,18172,44848,18427,45516,18286,17848,5993,44866,18279,18572,8753,10402,14402,17278,18652,17703,19078,30963,45051,17092,16885,24412,13988,44739,5410,22509,31354,45517,44711,18237,24411,30135,44762,17527,17237,44884,44674,44669,45567,44849,44837,37057,45421,44689,17657)
Unknown column 'np.person' in 'where clause'