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 (44848,17981,44873,16935,18900,45277,18572,45180,45229,3883,6609,44745,18237,16885,5388,44837,18185,17904,44853,44868,17237,36472,18427,44739,44685,19057,37057,17092,44870,8753,18286,44861,45072,44836,44869,45515,45561,17114,18446,30986,44845,18172,44835,18652,44866,44875,37267,44766,18981,45346,45177,44531,18353,17755,18894,30135,44640,45567,45518,9341,6875,18650,10402,19078,18042,17771,6862,45421,45517,17839)
Unknown column 'np.person' in 'where clause'