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 (18652,44853,18900,22509,18446,36472,44861,17556,44867,44875,44884,44835,37267,17601,28530,18894,44858,18301,19078,44855,45286,44739,44856,44711,44689,39676,45051,31354,44894,17092,24441,44837,34194,30963,44851,44671,17904,4765,17839,4686,43800,18430,44878,45043,17835,18279,18648,18042,37057,17771,8753,44687,24438,44765,44845,5259,45516,14402,44866,45262,5993,45567,44854,18172,44766,17335,16885,44768,45229,45421)
Unknown column 'np.person' in 'where clause'