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 (18648,45561,44711,17009,45177,17527,17351,44858,18301,44873,3,8753,44671,17835,18237,45229,13425,18279,17756,44836,45517,18981,45518,10402,4765,13,45567,17492,45515,34194,44531,4686,44851,16935,37267,44869,44689,44875,44768,18650,17981,18172,18185,18900,18996,44867,36472,17839,17335,45042,18688,30963,5388,17771,45043,44878,17278,17556,44674,18353,24441,18427,17114,44884,45421,44687,14402,28530,17657,44894)
Unknown column 'np.person' in 'where clause'