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 (5993,19057,6862,24441,44878,44856,44762,44835,24412,34194,44764,45515,37267,22509,6875,18353,45229,18172,18650,18042,30986,45072,13922,44866,44884,31354,18446,13425,13,17835,45043,17657,45518,44711,3883,18185,18652,44687,39676,14402,17839,14622,17237,17756,44861,44868,16885,18427,8753,45567,45042,44765,18996,45561,17848,18237,18894,17114,44854,19078,4765,44674,45051,17092,3,44739,44745,17351,18981,30963)
Unknown column 'np.person' in 'where clause'