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 (13988,44873,44739,45043,44762,45561,44869,18981,18650,44868,18430,17527,44674,18900,44870,9341,18237,44685,44867,24411,45177,44835,44766,5993,44848,45516,44878,17492,44849,44671,44669,4686,13,44764,45277,17114,43800,17771,28530,45346,44851,17848,45518,14622,18286,17756,18353,45567,6782,39676,13922,45072,4765,14402,16885,13425,44711,18652,17835,45421,18996,17904,17092,30135,17755,44861,30963,18279,44856,44531)
Unknown column 'np.person' in 'where clause'