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 (44863,18648,44845,44861,45518,5388,44674,44849,45051,18237,17981,44870,18279,18172,44685,17835,45180,17601,44767,14402,18894,18446,44866,18794,44867,16885,5259,44836,45043,17755,18900,18688,18185,45516,19057,45567,18981,44671,5410,24438,17848,18427,9341,44851,17527,44854,37057,44884,17756,44855,3883,28313,18652,44875,44669,17492,17556,17771,22509,30986,18286,18719,44765,44868,44762,18042,37267,44856,24411,32454)
Unknown column 'np.person' in 'where clause'