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,17756,44854,13988,45177,17351,3883,44765,45043,17527,24411,44837,44869,39676,44870,18446,3,17848,17601,44835,30963,17981,4686,28530,18301,17904,4765,6609,18900,44762,18172,45042,44851,17492,17335,19078,18648,18719,43800,22509,44884,44687,28313,45561,45515,16885,17278,31354,37267,45517,30135,44775,45051,37057,44855,17092,18652,17237,44873,17835,13,44689,44868,44685,44878,18650,18794,18981,44531,44894)
Unknown column 'np.person' in 'where clause'