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 (28530,10402,16935,44745,14622,18185,45072,45518,13922,6875,44868,44531,18430,24438,17009,18794,18900,44863,4686,18688,44640,44837,17114,44851,32454,28313,4765,3,18172,17756,37267,44767,24412,17904,44739,19057,44869,44671,17092,18427,45517,45042,30963,44848,44766,45051,17771,18237,44865,44873,44845,17278,43800,44775,3883,17981,17237,44711,44884,17755,8753,44854,44835,18996,44858,18650,30986,44870,13988,44762)
Unknown column 'np.person' in 'where clause'