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 (9341,44854,44836,36472,16885,5410,44875,32454,44849,44861,18446,44768,18430,16935,17278,37267,3883,34194,17009,17755,24441,19057,4765,17904,18286,44858,18237,22509,17835,17351,44767,18648,44845,44869,45518,45516,45561,31354,14622,44856,44878,45421,10402,6782,18894,44865,18794,44848,17335,18427,30963,24438,45180,17092,45229,28313,3,44671,17703,45072,37057,5388,45043,44711,17771,18719,44765,18572,28530,6862)
Unknown column 'np.person' in 'where clause'