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 (17092,17835,43800,5388,44849,18688,44640,44853,18652,5993,45346,32454,34194,16885,44875,14622,6862,44531,24441,17351,17904,16935,45177,44837,30986,44854,17237,37267,44873,44687,6875,31354,17278,17009,45180,17755,9341,45286,17527,44671,30963,17839,24412,18572,45051,44836,44861,44835,18996,44866,44858,44689,45421,18719,44884,18301,45229,44851,17981,44745,13922,18042,17756,10402,17771,18446,44765,24411,44869,8753)
Unknown column 'np.person' in 'where clause'