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 (44689,18648,14622,18353,44671,44669,44745,45051,44739,17703,18301,17657,5388,30986,17771,44856,24438,24411,16935,45517,17114,17848,44845,17092,18719,17527,44767,45421,44766,8753,44853,32454,37057,18237,44854,22509,17278,17009,45516,44764,45515,6609,45180,10402,44848,17835,45229,44837,17335,9341,24412,31354,17756,45262,19057,45072,18172,45346,4686,18688,17839,44884,5993,18650,17492,17904,39676,24441,45177,44835)
Unknown column 'np.person' in 'where clause'