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 (18996,13988,4765,18353,28313,44858,10402,18042,44884,8753,45072,44766,18301,3,44531,18572,44866,18446,44894,14622,17771,44687,44764,45051,44867,24412,17601,17527,44873,44671,18794,44745,34194,45180,17981,18172,44848,30963,44870,18279,45517,13922,17237,17756,16885,9341,13,44878,44853,43800,45286,44865,4686,6609,16935,19078,44849,45043,17703,44845,17755,44868,45421,17839,18894,18237,44674,18900,18652,30986)
Unknown column 'np.person' in 'where clause'