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 (45421,45567,13988,44762,24412,44884,6609,45515,17848,17278,44866,3,37267,44855,13425,17981,17092,44835,17556,44531,18301,44849,17237,36472,44766,37057,17756,44687,19057,17009,44878,18652,44689,6782,45043,44856,17492,18430,16885,18688,24438,44836,44854,45346,17601,45286,44858,5993,44868,9341,17114,18353,44768,18427,8753,17703,4765,44640,18172,28313,24411,45516,6875,3883,44775,17771,44853,45229,18185,18648)
Unknown column 'np.person' in 'where clause'