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 (45177,44836,44868,44863,16885,44685,18572,44873,8753,44837,18279,17351,44858,44865,28530,44531,13425,9341,36472,14402,18981,45421,17492,44768,44848,17755,45517,30135,6782,17092,44745,18301,44853,17114,6609,44849,10402,44671,13,45180,44669,17527,44894,13922,17657,6875,18353,34194,45518,18688,44866,18794,17278,24438,18648,45042,30963,31354,44767,44689,18652,44711,17601,18430,14622,3883,18650,44856,44851,39676)
Unknown column 'np.person' in 'where clause'