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 (17771,37267,36472,18172,45051,44674,17835,30135,18650,28313,18996,44775,30963,44873,6609,44768,44767,44869,18279,44685,17556,44671,39676,17237,44640,45517,44766,17755,44865,43800,44669,18237,44711,44884,14622,44836,44851,17601,18185,16935,44866,44858,24438,45277,5388,45346,5410,16885,24411,17335,45042,18652,18648,13988,18719,18301,45229,45421,45286,45180,24412,6862,44531,24441,45516,45072,17009,4686,45177,5993)
Unknown column 'np.person' in 'where clause'