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 (16935,44674,44863,17351,44884,18185,45229,34194,44875,24412,44854,30963,44878,30135,13,31354,45518,44836,39676,44531,13425,44866,6609,44856,45051,18719,44869,44861,13922,44671,44689,45515,17981,18900,18650,18688,5410,17839,10402,5388,44853,30986,18237,3883,18446,17009,19057,17755,5259,6862,17904,9341,32454,45042,4765,44745,44867,18430,28530,44711,17756,17657,44851,18172,44687,24411,13988,45516,14622,44849)
Unknown column 'np.person' in 'where clause'