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 (43800,16885,30986,45346,45051,44863,18719,18172,44531,44878,17492,18648,8753,17756,17848,44849,31354,14402,5410,44861,16935,44836,45516,45421,6782,17904,44687,30135,19078,19057,18042,5993,44855,17981,17278,44711,17839,13988,45518,18900,18572,44854,44875,17601,6862,17556,44894,13922,28530,44873,44685,44866,17771,17335,18286,44869,44868,18650,45177,18279,45043,45277,45042,45517,17351,45262,44870,37267,45561,3)
Unknown column 'np.person' in 'where clause'