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,44863,44685,5993,44884,18353,24438,44845,19078,30986,45515,45567,44674,18652,22509,18430,14622,17756,6782,45180,44767,44865,18648,17771,18301,17703,44739,16885,17237,24412,45517,45042,17848,18446,17351,44837,17492,44873,17278,18172,6862,45051,16935,44866,44867,44836,44851,18794,18237,44849,18286,17839,5410,39676,45262,17009,44870,3883,45518,30963,18719,44764,5388,36472,17335,17755,6875,44835,9341)
Unknown column 'np.person' in 'where clause'