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 (44711,17351,17278,44768,17848,44863,30986,17703,34194,44745,17601,45515,44894,44845,9341,44867,17114,18688,18794,45561,17237,44875,13922,16885,18286,36472,39676,44866,18172,44766,44837,44878,44851,31354,18279,45421,44853,44873,18894,44855,18719,45262,44739,6782,18648,44775,44858,17755,17556,17335,45229,24441,19057,19078,44762,18353,10402,43800,17835,17756,8753,14622,6875,13425,4686,18430,17657,44674,24412,5993)
Unknown column 'np.person' in 'where clause'