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 (45517,13922,45229,44765,17657,36472,24412,34194,17839,18185,10402,43800,32454,28530,45346,17835,44845,18688,44775,44837,18652,39676,5388,44873,18430,31354,24441,4765,18981,17237,6609,45286,44849,17335,45051,44848,5259,37057,30135,44768,44869,8753,18279,17092,45042,17981,17755,44863,16935,44762,3,17601,45518,44878,44711,17278,44853,18900,17556,44851,45277,28313,30963,44855,17527,44867,22509,45262,18794,17904)
Unknown column 'np.person' in 'where clause'