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 (18430,17237,44875,16935,44884,18185,28313,45518,44867,9341,18652,45277,44848,32454,45229,6875,18237,37057,44674,45051,14402,44869,45043,18996,44851,24441,44739,22509,3,44855,44894,18794,44863,24438,18446,45072,14622,24411,44866,45262,24412,17009,17848,17556,43800,17835,18042,44873,13922,45177,17335,5410,44858,18427,17601,44671,18648,17092,6782,18572,44861,34194,39676,44853,44687,18981,17657,37267,44775,45561)
Unknown column 'np.person' in 'where clause'