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 (44674,5259,44849,19078,24412,6609,44894,5388,44531,13922,45051,24411,44767,18427,44836,8753,45229,44867,17527,30963,44866,45180,44671,44868,45516,28530,18353,36472,17114,17092,34194,45277,17601,45042,44640,18996,44855,14622,44775,44851,6782,44863,43800,17351,18042,18430,44711,45561,28313,17981,45262,31354,39676,45286,18719,16935,44689,17904,18650,18894,17556,44768,45517,18900,44745,17771,14402,17278,17335,6862)
Unknown column 'np.person' in 'where clause'