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 (44853,44768,18353,9341,4765,14622,44671,17904,17848,45346,18981,45180,18650,18446,44849,19057,18648,44837,24411,45561,18042,32454,45518,18900,45515,39676,37267,18286,45229,30963,17601,17556,17335,44766,44868,3883,17756,6862,18652,30135,24438,44762,18430,44764,18794,8753,45286,44878,17278,45567,44869,18185,37057,17703,44669,44851,44685,18996,17657,17237,13,24441,44640,16935,44870,44689,36472,34194,6609,5993)
Unknown column 'np.person' in 'where clause'