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 (16935,4686,17848,18286,17114,44745,14402,45518,44765,44845,18652,10402,18894,28530,44685,3883,45561,45262,18185,44884,44878,44868,17835,6782,17601,44854,37267,44863,44851,18301,45516,34194,18794,24412,44671,45517,17771,17351,5410,45043,44870,18900,17237,44869,44894,17492,13425,18279,44835,30986,32454,45515,18172,44836,24441,36472,17755,45567,44768,19078,44640,6862,28313,44767,44531,44674,17981,19057,43800,18650)
Unknown column 'np.person' in 'where clause'