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,17601,18353,24438,44861,44870,3883,3,17981,18185,17703,44858,6862,45516,5993,37267,9341,17009,44745,31354,45277,45051,44687,44845,14622,44669,8753,4686,18648,19057,17527,18286,44865,44685,45229,17237,44856,18652,45517,44849,17848,30135,6875,17755,44863,19078,45177,18430,44689,44762,17092,18719,13988,30963,43800,18900,18650,18996,22509,17657,24411,45180,36472,44866,30986,44867,17278,10402,18572,45043)
Unknown column 'np.person' in 'where clause'