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 (18981,17848,18042,44878,31354,13425,18688,17278,44836,45043,9341,44711,44775,45561,44765,45051,45421,45262,44685,17237,44865,19057,44640,32454,13922,44853,18430,18286,44858,45515,44764,44868,30986,44837,18185,44669,44869,17904,17771,18237,45277,45180,39676,44884,44835,36472,30963,17835,18719,44762,44873,14402,44863,5259,44870,43800,3,45518,34194,17527,18648,30135,17335,17601,6782,17657,44894,13988,18427,8753)
Unknown column 'np.person' in 'where clause'