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 (18648,17335,18430,18172,44866,17657,17092,44894,10402,45072,17771,8753,45516,44768,17601,44875,28530,14622,17835,17527,44848,45262,44531,45517,24412,37057,16935,36472,44856,44863,17114,45518,5259,17755,44775,17492,30963,5410,32454,18237,44868,44689,3,9341,6782,17237,17904,5388,24438,45346,18652,18427,45286,28313,44869,13425,44849,17351,24441,18900,18650,44711,18042,44861,18185,24411,5993,18981,31354,44640)
Unknown column 'np.person' in 'where clause'