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 (44711,18279,17657,17092,18688,17756,44861,44764,39676,45043,24412,16885,13922,18719,18900,5259,44856,18981,17601,14622,18446,18996,17351,19057,44855,45346,17703,44674,17848,5410,18894,18648,18650,44870,44775,3,28313,44848,18237,6875,44851,18427,6782,45177,18301,18286,45286,43800,17009,44835,31354,17237,45277,44687,30135,17114,8753,17492,45421,44640,17981,45180,44865,30963,45567,44873,44884,10402,44868,18353)
Unknown column 'np.person' in 'where clause'