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 (44835,18650,18237,3,13,17703,6862,18279,44837,18301,18719,17335,44775,18446,37057,45518,17009,36472,18648,5410,44863,44870,4765,6782,44669,44687,17278,18427,28313,44855,18996,14622,17092,22509,44531,44845,44767,44851,6609,45421,45346,44640,18185,44875,44849,45277,44674,18286,44856,44765,16885,16935,17114,17527,45516,18981,45515,44858,18172,24438,17981,18430,24411,45042,30963,18894,44764,17601,44689,30986)
Unknown column 'np.person' in 'where clause'