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 (44848,14622,44861,30986,18650,18446,17092,17237,18894,17335,5388,44687,44870,18996,44855,5259,17755,44835,18900,17981,24412,18185,4765,6862,44853,18353,44745,17904,24411,45177,13988,45051,45517,44765,44764,17848,44878,16885,13425,45043,18648,44836,3883,18430,44856,5410,17492,17657,45346,44873,18301,44671,30135,10402,45515,44775,31354,39676,6609,45421,43800,17839,36472,6875,18719,18794,18237,44685,8753,45072)
Unknown column 'np.person' in 'where clause'