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 (8753,24411,45286,44837,44849,32454,24441,45515,17556,44853,18042,44685,45567,17492,17092,45042,16885,18652,44531,14622,44858,44854,37267,17848,44865,45229,44674,17839,44775,45346,44875,18719,44835,14402,44894,17114,18301,18648,10402,19057,45518,36472,5993,18172,31354,3883,6862,45051,17703,45180,18237,44873,44870,44640,18286,17351,44764,44836,18688,17237,44762,16935,18427,44884,17835,44866,44878,13988,44851,18650)
Unknown column 'np.person' in 'where clause'