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 (17009,13922,45567,44762,18794,44764,18894,44878,45262,9341,17492,17703,44765,45072,45051,44711,44856,45517,44894,45518,17556,17527,44875,45516,37267,44873,18688,45042,44766,44867,44835,17237,18719,28313,5259,44855,44869,6782,17114,13988,44845,18353,45515,34194,45421,45346,17657,44836,24411,18572,17839,10402,18650,18427,17335,19057,17756,17835,44531,4686,18279,44775,14402,44687,17904,17092,18648,39676,8753,18301)
Unknown column 'np.person' in 'where clause'