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 (17904,30986,44861,24438,18894,18185,18172,17556,24412,44894,44640,37057,44875,44835,10402,6609,45177,17848,17755,17839,45515,44870,17492,44739,44851,18042,22509,44863,36472,45421,44745,44775,19057,44878,44853,8753,5993,17335,17009,45518,28530,18648,5259,18353,17771,18650,24441,18719,16935,45262,17756,45229,17114,44836,44884,17981,9341,34194,30135,43800,18900,14622,16885,31354,3,44764,45042,18301,44762,39676)
Unknown column 'np.person' in 'where clause'