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 (44854,18446,10402,39676,5993,45262,4765,17904,8753,45286,18172,44671,36472,19057,45277,44836,13988,17556,44873,18572,17601,44739,45072,17835,17848,45421,45515,44849,45229,18719,24412,44764,3883,17009,13,44768,14622,44868,17351,30986,6782,44866,44835,17755,16885,17657,17114,44765,45518,44837,5259,44856,44685,44855,17981,24441,18279,4686,30963,44640,44865,18688,5410,18996,45517,22509,18900,44851,45042,5388)
Unknown column 'np.person' in 'where clause'