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 (9341,44861,45051,6609,45516,44687,44875,18572,45518,18446,44863,24411,4686,32454,45043,18981,44835,6862,44685,17755,45042,45180,28530,44674,17092,5410,44765,45561,44531,45567,44689,45262,13425,3,44856,14402,45346,24441,45229,18794,44867,44851,4765,44865,18185,18652,14622,17904,30963,44858,17351,44762,17237,30986,45072,44671,37267,44745,17601,44845,44775,17556,44640,44853,13988,44739,18353,44837,17848,22509)
Unknown column 'np.person' in 'where clause'