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 (16885,45516,45042,44884,18981,44856,18894,18688,13,28530,44873,17904,30986,18446,30963,18286,44711,6609,44861,44858,44870,24441,13988,44745,17527,13922,17556,5410,45286,45421,18900,3883,19078,17601,37057,44845,18185,44767,19057,18648,16935,44837,45180,17848,24438,13425,17335,44867,44855,45517,4686,44671,44854,14622,44865,17703,45043,18719,45515,31354,5259,44851,45518,44669,45561,44640,44875,5993,18172,37267)
Unknown column 'np.person' in 'where clause'