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 (44764,18042,44674,24438,45567,44866,44835,18353,44836,17351,17237,44767,45561,18237,19057,17657,17092,44711,45072,44768,17848,17492,17981,19078,44878,17904,17601,45051,45177,6862,18650,45516,17278,3,4765,44848,44858,17009,18900,14622,17835,14402,44894,6782,18996,44687,45518,36472,44869,18794,44671,44854,44873,5993,18301,17335,6609,4686,44868,44884,44685,44669,44762,44775,3883,5259,18648,6875,17755,16885)
Unknown column 'np.person' in 'where clause'