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 (44849,18719,44854,13988,44855,44853,44861,44851,45421,17839,30986,4765,17278,44873,17756,18652,17755,18572,18172,34194,44837,18353,28313,39676,45518,43800,44866,17981,8753,19078,17703,18042,44884,24441,36472,45516,9341,5388,37267,17527,44894,17848,3,44764,18427,18688,17092,17771,44865,45567,45072,44835,18446,17556,16935,18237,18900,44674,6862,18185,45262,13425,45051,3883,16885,18996,14622,44745,17237,6609)
Unknown column 'np.person' in 'where clause'