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,44765,44745,5410,45042,17755,18900,44875,17237,44689,44884,17009,44640,5388,17839,44853,44894,36472,45567,44685,6862,45517,44835,17848,18427,30986,31354,18652,17335,13425,45346,13922,44851,16935,44858,9341,44764,17351,18650,18237,30963,44863,44767,44866,44869,16885,18301,44861,44865,44848,44674,45561,28530,17114,44868,18286,45518,44768,44671,45515,44878,44766,43800,45043,24441,44711,39676,14402,14622,5259)
Unknown column 'np.person' in 'where clause'