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 (44768,45277,3,17755,44767,18353,24411,44835,18794,17351,44853,44766,44762,13425,28530,17335,18430,45561,22509,17981,44849,45042,44875,17237,4765,17009,5993,44711,18446,44764,18648,45517,44884,9341,37267,44775,28313,5388,37057,44861,18237,17527,44878,45229,44674,18900,6609,36472,45051,44854,17492,19078,17114,18572,18650,44851,14402,18042,31354,45346,18172,30963,44739,44870,17835,44894,45177,45262,18427,17657)
Unknown column 'np.person' in 'where clause'