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 (18981,17492,44640,44767,14622,17009,17755,44837,17839,6609,45262,45515,5993,18042,32454,44858,13922,45286,43800,45277,6875,18648,5259,6862,16885,39676,18301,44868,18279,44762,44768,30135,45180,18688,8753,44766,44853,44764,44531,44711,3883,44671,44669,45421,17556,17756,18237,17092,18572,17835,44775,45043,18719,4765,24438,30986,44739,36472,44867,44845,28313,34194,17527,17351,44854,45072,44870,44855,18650,18185)
Unknown column 'np.person' in 'where clause'