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 (45072,17848,6609,44866,4765,6862,45262,44835,43800,18894,44711,16935,45286,44867,45042,44875,5259,18301,37267,44894,8753,44854,44767,44685,17492,24412,36472,45177,45515,44869,44858,44848,18996,45043,44865,17904,44870,18688,28530,13988,14402,44669,44739,17756,18172,44878,14622,44765,28313,18446,44853,30963,18185,17657,44836,45180,18648,44768,18572,3,17114,44689,45567,18652,5410,5388,6782,31354,19078,45561)
Unknown column 'np.person' in 'where clause'