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 (18353,45567,17755,45515,16885,17527,17114,44867,17981,45518,18900,45346,18572,13425,6782,44711,18688,17771,44863,17657,14622,43800,18301,44640,17009,24438,44875,28313,44868,18996,5259,44861,13,18981,44873,44766,17756,44764,18042,44854,17335,18279,44689,45043,45516,44866,45180,45229,24412,6875,30963,4686,44894,18427,44870,44745,44685,18286,44768,13922,45177,24441,24411,14402,28530,45277,44845,44848,44836,8753)
Unknown column 'np.person' in 'where clause'