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 (6862,44884,18572,37057,28530,16885,18042,44848,45567,45262,44849,44875,17839,45043,18719,17335,44766,18301,5410,17092,44640,44869,18900,13988,22509,44689,18650,17771,45421,44855,44853,44856,44836,18794,18648,44866,3,9341,14622,18427,45042,6875,44768,44878,45180,4765,17351,45346,44894,45561,44762,17601,18446,5388,44851,44671,24411,5993,44775,17278,17756,18353,17237,39676,8753,44873,45072,44685,18185,18652)
Unknown column 'np.person' in 'where clause'