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 (6875,14622,24412,17756,45072,44848,3,17492,13988,17237,44531,44866,44868,45229,44768,18996,36472,17981,17527,13922,18688,45561,18427,45177,18650,5259,44861,6862,44669,3883,18900,44765,44762,44865,44674,45421,18353,45515,44835,45043,8753,17771,45262,17703,18794,45517,17835,30986,18572,17351,17114,4686,45042,17848,45051,44745,17657,45518,18279,22509,34194,18652,44775,18894,10402,17092,44855,44739,37267,17601)
Unknown column 'np.person' in 'where clause'