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 (19078,45072,45518,30986,18648,13,18996,44640,18572,44894,44863,45286,17237,17527,28530,17278,28313,18981,45177,9341,18185,24438,17755,44687,44851,44837,45262,44765,44669,31354,17556,30135,16935,4686,17904,6862,44866,24411,44853,44873,44856,18650,45561,44858,34194,13425,44764,18446,18301,17601,44868,17492,45042,43800,18286,6609,24441,10402,18652,44867,18430,44835,44674,17771,22509,44845,44671,14622,18042,44878)
Unknown column 'np.person' in 'where clause'