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 (13425,24412,44671,44836,18286,44685,17771,16935,44875,45567,44869,45346,45180,6609,17839,44866,45177,17351,31354,17114,16885,44711,18301,44687,44867,44878,17527,18794,5410,44745,17556,44837,44894,17981,44855,17657,45262,3883,44853,18572,13988,45515,44768,18430,45561,18353,44764,5388,17703,44766,17009,45051,44849,39676,6875,18237,3,44765,44870,18996,28530,14402,4765,5259,17237,8753,37267,18981,18652,45286)
Unknown column 'np.person' in 'where clause'