Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (44674,30963,45277,8753,31354,3,17657,44855,44870,44868,18648,45421,17335,6862,44863,44745,18719,17904,18688,18430,18427,17848,45517,44836,19057,45051,19078,5993,30135,18652,17114,44767,45286,6609,39676,44765,44768,44878,17771,44867,18900,45042,44875,45567,18286,30986,22509,4686,18237,24411,45518,44853,14402,18996,18172,9341,17981,17009,45515,18353,6875,18572,45229,17755,44848,18794,17703,37057,13922,45177)
Unknown column 'np.person' in 'where clause'