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 (44853,44762,44768,17009,18719,10402,37267,45277,44851,13,18650,5993,24441,30963,45346,44870,24412,28530,44861,18996,5259,18237,31354,5388,16935,18427,44867,17848,44674,6609,28313,45517,24438,18172,44868,44711,30986,44894,18430,34194,39676,45229,17755,18688,45043,45561,17839,8753,44835,17771,17904,17981,44689,17114,17492,44739,44858,45042,5410,44878,44765,44845,44836,14402,37057,18648,17657,44764,18572,18894)
Unknown column 'np.person' in 'where clause'