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 (18286,44739,45277,18353,16885,28530,45516,17009,45051,44775,45072,18719,24441,24438,30986,16935,14402,18446,14622,17839,45043,44854,44873,44849,19057,44764,6862,44863,18894,8753,44866,44837,45346,44766,18427,28313,18652,37267,44869,6782,31354,5388,6875,3883,45262,44875,17756,5993,17237,44685,17835,44884,44711,22509,44674,10402,44894,18572,18430,45517,44745,4686,18301,17492,44689,44845,45042,45515,18648,39676)
Unknown column 'np.person' in 'where clause'