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 (44849,6782,13425,10402,17904,18894,37057,17703,18353,3883,17839,44856,44762,45515,44855,45516,17657,44671,44687,44836,17848,44765,44867,18572,18279,44689,44884,32454,18430,44858,45262,45043,17756,18996,45051,6875,45177,17755,44878,30986,45180,44669,18794,44835,5388,28313,44764,44866,18688,19057,45518,5410,19078,44848,44851,17771,18981,17278,28530,18446,17601,31354,18652,44845,24411,18650,18286,44894,17009,14402)
Unknown column 'np.person' in 'where clause'