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 (18650,44869,13922,44861,44849,30986,17835,17237,44875,18894,44671,18996,45518,44687,18900,14402,43800,45177,44845,17755,28313,45421,44851,5259,45042,17981,5388,24412,17556,44531,44765,45262,19057,44835,18301,6875,37267,18185,18172,18430,18981,44764,18719,28530,44766,3,44863,17278,18688,45516,18427,36472,44848,44745,9341,19078,18042,44867,45567,45286,24438,44739,45517,44866,44855,4686,22509,44858,44762,44674)
Unknown column 'np.person' in 'where clause'