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 (18719,17601,44739,19057,5993,18353,9341,16935,44873,18286,44745,17981,24441,5410,44884,28313,5388,45043,3883,5259,17839,44711,13,45346,44766,13988,44866,18648,44835,18042,44669,44853,44878,44765,18652,18430,16885,45229,18572,28530,17556,44868,17835,44856,44865,18185,30963,44861,44867,18237,18894,44768,44870,37267,45177,44869,44775,45042,18446,44863,44674,24438,44845,45262,18981,4765,44837,45516,44849,17527)
Unknown column 'np.person' in 'where clause'