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 (44870,44836,44848,36472,17755,24412,4765,44866,17703,45517,5410,44854,44868,44764,17237,44849,44768,18981,44851,45229,13922,13,45561,18650,22509,18279,18996,45515,24438,8753,45516,17904,37057,44873,44689,34194,6875,18900,18301,44775,18172,17556,24411,17756,14622,45180,45072,17771,44531,5259,44640,16885,44674,17657,44894,45177,45346,44685,17278,18572,32454,17351,6609,18719,44869,44765,17839,45042,18427,39676)
Unknown column 'np.person' in 'where clause'