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 (44671,17114,45518,30963,45277,44762,45043,17771,44848,44861,44669,45180,17755,45517,18650,5259,17492,17092,6862,44674,6609,18648,18996,4686,44764,14622,18042,3883,18794,44865,44867,17009,6875,8753,17527,44866,44868,19057,18981,18185,17839,44775,44685,44837,17904,13,4765,18652,5388,17835,18894,10402,17848,18172,44854,22509,30986,17756,44873,37057,18279,44531,44745,24441,13425,34194,45229,45042,44870,44768)
Unknown column 'np.person' in 'where clause'