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 (19057,18301,39676,30135,10402,24412,18430,18427,19078,44837,44685,32454,18794,24441,18446,31354,17351,45043,44878,44861,44884,5388,17981,18652,44870,6609,3883,44739,28313,44765,16935,17904,44671,17092,18237,45180,45515,44853,18648,18185,13425,17114,44854,17527,18353,45567,44875,37057,18650,44674,44845,44766,14622,44687,44894,18279,17657,18286,45421,17755,45277,44869,44865,30963,6782,44851,17756,45072,44849,17771)
Unknown column 'np.person' in 'where clause'