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 (18172,17556,18427,18894,17527,17237,17771,17278,17009,37267,45517,44851,34194,44867,4765,44835,24441,45180,5388,18042,45277,17839,17848,28313,3,44870,39676,44689,17904,44837,30986,44531,44767,5259,18900,18794,14622,13425,18185,45346,44858,16935,3883,14402,36472,44855,45072,18353,24412,18981,45042,13922,45229,44674,44762,17756,18286,18996,44863,45567,44869,18648,44671,10402,44768,6609,45515,37057,44739,17351)
Unknown column 'np.person' in 'where clause'