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 (28530,36472,44689,18652,18996,44848,45180,45043,44768,18648,39676,19078,45518,30135,44875,18427,6609,17114,44854,17835,44873,44836,45515,44849,6875,17601,45421,44884,17755,17556,14402,16935,45262,13425,18430,6862,5388,28313,45177,44869,24438,24411,9341,17904,44685,18650,18719,5410,44762,13922,45516,44868,30986,8753,44878,3883,10402,44531,6782,45286,5993,45072,17351,19057,13,44855,17981,44671,37267,43800)
Unknown column 'np.person' in 'where clause'