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 (18900,18650,44764,18286,18652,5993,28530,17904,44869,44854,44765,17278,22509,18237,44640,44835,44861,3,45421,18172,18688,19078,45567,44685,24438,5410,44687,17009,18894,18572,8753,45518,9341,30963,36472,44853,18719,18430,18279,44671,44766,3883,45517,44894,45286,18648,18794,45262,44867,44873,44875,45516,44739,6609,45277,44863,45042,44849,44856,24441,44768,45515,44711,44669,45177,30986,17351,32454,44878,44767)
Unknown column 'np.person' in 'where clause'