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 (44669,39676,18301,44865,9341,19057,18719,44768,44884,45567,28530,18286,17835,5388,17092,45180,44868,17839,45051,6862,44745,13922,44762,6609,3,45561,44854,18648,45421,45042,45346,44866,44875,4686,44689,45518,16935,5259,37267,18185,30963,22509,45072,44531,18900,45515,44739,18981,24412,18650,3883,44867,44848,17114,17756,18427,44767,36472,17703,44853,17755,5410,17657,14402,17904,17527,44687,44869,44766,34194)
Unknown column 'np.person' in 'where clause'