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 (32454,45072,24411,17335,44745,19078,17981,45561,22509,17527,30135,45177,44837,37267,5410,13,17771,14622,44689,44869,44685,17601,45051,18353,17556,18427,18794,28530,6875,13425,44775,13988,45262,45567,14402,45180,44848,18185,17114,18430,44870,44851,44766,45043,6609,30963,44865,6782,44767,18996,30986,18648,44873,44894,44739,17848,18894,18981,45518,17839,44878,37057,13922,44875,39676,17703,8753,44768,45229,5388)
Unknown column 'np.person' in 'where clause'