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 (44689,32454,45561,4765,44767,44835,44775,44669,44762,36472,18446,18172,24441,44863,18648,44856,44768,34194,10402,5993,17657,18652,19078,45043,44851,18572,45229,44869,44845,28313,17237,6875,17703,45277,37057,44861,44894,44766,17904,44853,18650,44875,44870,44884,24411,44640,45518,45072,45421,22509,45515,18427,44671,18353,3,43800,3883,44765,45262,18719,18688,8753,44849,5410,9341,39676,18279,19057,31354,44855)
Unknown column 'np.person' in 'where clause'