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 (6782,4765,18237,45262,17527,45518,5410,44851,44767,17009,44685,18286,45051,19078,6875,45043,44894,17771,44768,17848,18301,18185,44640,44762,4686,17278,16885,17351,44766,44531,44853,44863,45346,18279,44687,6862,45517,18794,45042,18446,44689,24412,18427,6609,44775,30986,17114,44836,44849,18042,17601,37057,22509,45180,44875,24441,18719,44868,44867,44765,31354,13922,30963,34194,17092,30135,9341,24438,44837,10402)
Unknown column 'np.person' in 'where clause'