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 (17904,14402,44868,5410,17492,44856,44764,17848,44766,18237,44671,17114,44878,16935,18353,18185,44866,17237,44894,4686,17657,45042,17092,45421,17335,18430,24441,44739,4765,17556,17981,44685,44849,24438,19057,28313,44768,37267,45515,45229,44765,44745,22509,17601,45517,45072,5993,13922,8753,44858,18446,32454,18648,17756,44711,18172,39676,5259,34194,44689,45286,13,44640,6875,17351,14622,5388,44853,9341,18900)
Unknown column 'np.person' in 'where clause'