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 (36472,18301,45180,13425,37057,45517,44739,18353,4765,44671,44669,6782,17492,18430,44868,18648,44884,44873,5410,44689,6862,5993,4686,45043,24441,44853,18794,44848,5388,18185,5259,18996,17755,44685,14622,44855,18237,14402,44894,31354,44766,17756,44867,10402,43800,18719,44849,44837,18688,44674,45515,45516,18650,17904,28530,44768,30986,13988,9341,44687,44764,45286,44851,30135,3,37267,17848,17556,44836,24412)
Unknown column 'np.person' in 'where clause'