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 (10402,16885,5259,18894,44869,18042,18172,44849,17114,18279,17839,45515,6609,44870,44766,45277,24412,45262,44745,44855,17237,30963,17703,45561,44848,44674,44867,45518,44854,18237,18427,44866,44775,18719,44764,37267,18648,45421,44669,44836,44875,44837,44711,44768,44868,13922,44739,18185,18353,44878,45042,44835,22509,45229,44687,14622,44671,17835,17771,17527,44873,44689,8753,45516,18688,13,31354,17092,4765,44856)
Unknown column 'np.person' in 'where clause'