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 (17492,45567,44875,44849,44836,24441,13,18650,3,45561,17009,18185,10402,6875,44848,44687,18172,16935,17092,44853,13988,44851,44640,9341,45229,44689,44854,44878,44869,18237,44845,4686,4765,18430,18794,45346,18652,44870,17237,17771,44671,30135,34194,44669,44861,24412,18446,37267,44858,19078,44762,17601,8753,44837,39676,22509,17703,13425,44884,3883,18996,44855,17527,17278,18286,18279,44775,24438,44711,44868)
Unknown column 'np.person' in 'where clause'