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 (44870,28313,43800,18427,44766,44873,44711,44845,45072,6782,17981,5410,45286,44867,3,28530,16935,3883,13988,45515,24412,31354,30986,44863,44640,44868,45277,44875,18572,45346,39676,8753,17756,17335,19057,6862,44775,9341,44765,44836,44856,5993,45177,18301,44687,45517,44837,45229,34194,18237,13425,17237,13,24441,18652,37267,44853,45180,17703,18042,44848,45567,17771,4686,30135,30963,45042,18650,17492,17278)
Unknown column 'np.person' in 'where clause'