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 (17839,31354,9341,5993,19078,17904,44674,3,10402,6782,18237,18446,44851,18172,44711,28530,45042,13922,17237,44866,17981,18900,32454,44685,17351,17755,4686,17703,36472,44853,44894,44858,44863,14622,44861,44837,44867,44855,44875,5388,44766,44775,13,6862,45286,45043,18981,30986,44745,44671,17114,18688,17756,44835,18301,17601,45517,18279,44762,5259,13425,44687,45277,17835,44689,44865,44845,44849,18286,44884)
Unknown column 'np.person' in 'where clause'