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 (24412,45561,6609,18996,44868,18652,44878,45421,22509,24411,44766,17278,44869,18650,39676,18430,44674,44875,14402,18172,17335,17114,17981,17092,14622,17237,17601,16885,44853,45180,17904,32454,17527,17657,8753,44835,45277,13922,44685,4765,17756,44764,45043,17771,13425,3883,45286,44689,19057,6782,44867,30135,44836,18446,9341,18894,18688,44851,44863,6875,18185,30986,44849,44531,18794,45515,18042,17848,44775,45072)
Unknown column 'np.person' in 'where clause'