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 (44878,44767,17657,8753,45286,44851,17835,17601,6875,13988,44745,18572,44768,45567,30986,28530,17492,44869,44870,5993,44873,17848,44739,44669,3883,44671,17756,45346,45043,44762,45518,34194,44765,18427,17009,44861,44685,18430,43800,44674,45516,45051,18652,17703,31354,18353,16935,45277,44711,44845,18794,17092,44855,44775,5410,44853,5259,13425,45421,19078,9341,18446,18286,10402,45072,44866,24438,44856,6609,18719)
Unknown column 'np.person' in 'where clause'