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 (44767,17657,44775,24412,44766,44855,17904,18894,9341,44837,44531,45229,8753,44884,17755,18996,39676,13922,5259,17114,45043,10402,44689,44866,45177,44640,19078,6875,43800,17009,24438,18650,17556,16885,44873,44861,44849,17278,44671,18572,17703,30986,44835,17335,5993,13425,17839,17351,44875,18237,45518,18286,18446,44856,44851,44711,45072,17848,14622,3,37267,19057,44764,18648,36472,18981,45051,13988,3883,45515)
Unknown column 'np.person' in 'where clause'