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 (30986,17492,45043,17755,45072,28530,44764,14622,44854,45567,44674,44845,37057,18286,45051,18652,45518,18430,17351,16935,14402,17009,17278,17527,18900,4686,6782,13922,19057,18446,18353,44878,13,44858,17657,44856,18719,17335,44739,18981,6862,16885,45177,18301,44768,19078,44836,36472,44861,17839,32454,24441,4765,44685,44868,18279,24438,39676,45286,44869,18042,44884,45262,43800,44640,18237,17237,17601,44873,18650)
Unknown column 'np.person' in 'where clause'