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 (44858,37267,44873,45262,44766,43800,6782,17981,28313,18572,44870,14402,17756,8753,3,44674,18996,4765,16885,44767,44878,28530,10402,44745,44851,45042,18353,44863,44866,30135,3883,17278,44765,17904,17657,45229,44854,45286,18237,9341,44739,44711,18185,44835,45180,44856,18794,17848,17114,13922,17009,18446,44764,17601,45518,24441,18042,18688,44768,18900,18719,44687,44685,17237,18652,44865,24438,17755,39676,18648)
Unknown column 'np.person' in 'where clause'