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 (8753,37057,28313,17335,44762,44855,24412,44711,44853,45277,4686,44878,44685,45043,45286,44866,13,6782,45421,18688,44865,44640,45180,18572,44868,44845,18279,3,44768,18185,44689,45516,45515,18301,17755,14402,18650,17278,13988,44861,5388,45517,44671,18172,44875,44849,45177,18042,44873,17351,43800,13425,30986,24438,44745,5259,45262,22509,18430,45518,16885,17703,45346,6609,18996,17756,19057,36472,44765,17092)
Unknown column 'np.person' in 'where clause'