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,5410,17756,30986,44884,13988,18652,43800,24412,39676,17771,44854,5993,5388,45517,45072,18286,45561,45286,32454,45042,30135,18648,44767,28313,44765,45346,44867,31354,45229,13,44671,19057,44894,6782,18430,45262,18185,9341,44875,44640,18279,44855,44669,18446,3,44865,44853,44866,44873,5259,17092,18794,28530,45043,19078,44764,17556,18427,17703,4765,17835,44768,44739,44836,18301,24441,13425,14622,17351)
Unknown column 'np.person' in 'where clause'