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 (45346,17771,5410,17839,18430,45421,44866,44685,45043,5993,19057,17657,44836,36472,44764,44711,45516,17755,44861,18185,17492,5259,4686,14402,44845,45072,13425,28313,45286,30963,43800,44851,18981,44531,45561,37057,45517,18650,44867,34194,45042,44870,44854,9341,18353,18286,18648,17351,44674,44863,17092,18572,45518,44875,6782,45180,3,16935,44869,44884,44689,44766,24412,44687,18719,44868,44865,45177,44671,17335)
Unknown column 'np.person' in 'where clause'