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 (18572,44849,18648,18894,44868,17278,17351,24438,44863,13988,45177,44674,17527,17848,44861,45072,44531,6782,45286,18237,44766,44711,17335,44762,45051,8753,18042,18794,44856,4765,18652,17601,17114,45229,18430,6609,45516,43800,44775,17835,19078,32454,14622,3883,44873,44858,45518,18353,24412,6862,44894,17839,16885,45277,44851,45567,44878,45421,34194,45515,17755,44848,44853,44768,45517,44855,44875,5259,17703,45262)
Unknown column 'np.person' in 'where clause'