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 (45277,17703,18446,45042,30135,44689,44855,17237,45421,44849,18894,45180,44878,45262,44873,44894,44640,17755,17756,44687,18900,45517,44858,44762,44854,44863,6862,44856,6875,17335,45286,18996,44669,18430,44671,13425,17527,18042,4686,14402,44853,44868,31354,17114,18279,16935,44837,44765,44869,13922,18237,24411,45072,18648,3,44867,17351,19078,17848,18301,45177,44775,44875,17556,18353,17092,44851,17657,45518,45561)
Unknown column 'np.person' in 'where clause'