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 (17835,17703,28530,16885,17092,13,44766,17009,44836,44674,44855,45043,13988,18301,44851,44870,44685,44869,44854,24441,37267,45567,44868,44873,18648,18172,17981,18237,36472,44669,44865,45262,17755,18286,14402,17527,44861,5259,44848,5993,44858,18996,6609,44894,44671,45229,18719,24412,10402,44837,44765,5410,45516,19057,44768,3,6782,13425,45177,18894,13922,18650,44849,17657,18427,8753,18042,45042,17556,44856)
Unknown column 'np.person' in 'where clause'