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 (30986,17848,5410,44531,44767,18185,17657,44674,17904,18237,19057,18172,44671,45042,5388,18719,8753,44894,17755,44711,39676,31354,44875,44768,45229,18427,44854,44765,44689,44687,17092,17278,17556,45051,44764,45277,44766,44858,18301,44878,44865,43800,18688,17527,44775,18894,45518,9341,13,18353,17237,44739,44884,44845,44685,18996,5993,6782,44851,24412,45567,45177,6609,19078,3,44640,14402,18648,17703,18794)
Unknown column 'np.person' in 'where clause'