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 (17492,18996,22509,5410,45517,17756,45051,30963,18185,18648,36472,17092,13425,44873,45286,44766,44868,45180,32454,45346,44884,43800,18894,45072,18981,44866,44855,18650,10402,18237,45518,3,44762,18794,18446,17237,44835,8753,44775,44878,44745,17527,14622,44858,44853,44640,44867,44894,44845,18688,17556,18652,13988,6862,16935,44851,44765,13,18427,44685,37267,5993,17009,44856,30135,17601,19078,24438,44854,16885)
Unknown column 'np.person' in 'where clause'