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 (18572,18650,6782,3,18172,18981,44767,6875,43800,5993,44768,45516,17848,44855,37057,44849,44836,17335,13988,17556,45346,17527,13922,44863,17601,5388,44775,18652,17657,44851,44845,44873,44765,17703,17278,44884,19057,44711,18430,44835,18996,5410,44856,17839,4686,14402,28313,18042,44866,36472,44745,37267,44875,18446,19078,18894,18719,18353,44764,44861,17981,17492,39676,44870,44837,16935,45567,24441,44853,8753)
Unknown column 'np.person' in 'where clause'