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 (6782,44863,44669,44878,13,17114,17009,37057,44767,19057,18648,18900,45561,18652,28530,17839,44768,18353,8753,6875,17335,39676,31354,18172,18996,18430,44869,45515,18185,17556,44775,6609,5993,44867,18286,37267,17755,44674,17835,17092,44875,44856,45421,44745,13922,44835,30986,45518,10402,17278,44762,17756,5388,17904,44868,30135,32454,6862,45043,45051,44689,22509,44894,18446,30963,17848,13988,44853,45517,44861)
Unknown column 'np.person' in 'where clause'