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,45561,3883,45051,14622,44767,44687,45516,44640,17904,13,45518,44837,18446,18996,44765,44835,44689,18185,39676,44867,17009,17335,18237,44868,44711,8753,45515,45277,44764,44873,18650,44865,17657,18794,44739,24441,19057,44671,18353,44685,17848,44762,18042,5259,44854,17556,45421,3,17351,18572,18900,18430,6782,18981,18719,24412,44745,5993,17703,17237,9341,44848,44836,13988,44669,18427,17114,44884,6609)
Unknown column 'np.person' in 'where clause'