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 (17114,44863,18650,6862,45043,32454,44894,9341,17009,44869,44856,5259,10402,45177,44861,44873,24411,45567,45042,13,19057,3883,44685,39676,18237,44775,44767,44766,44687,17703,18446,5410,18900,44851,24441,44671,18286,18172,17092,14622,17351,19078,44689,45515,18427,44868,44765,17657,30986,17237,18572,44762,5388,45518,6782,17835,18301,6875,18430,44739,45346,45072,44866,44884,22509,17904,17601,4765,44836,18996)
Unknown column 'np.person' in 'where clause'