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 (45051,18794,17771,32454,44764,17839,18446,24411,18172,17904,24438,18894,18185,18719,31354,45421,37057,45043,44766,13425,30963,44531,6782,17657,45346,13,44849,44836,17009,18301,44767,44762,18572,44853,44875,44867,17981,17835,18353,45072,45517,22509,5410,17755,9341,34194,17092,18652,18286,17556,17114,44775,44674,17492,44858,44884,17703,45286,28313,18237,44845,17848,17351,44765,44768,17335,45277,44894,39676,44869)
Unknown column 'np.person' in 'where clause'