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 (44863,44894,44674,45421,44837,10402,19078,4765,18279,5259,13922,18185,45043,44875,18237,44775,37267,14402,45072,44711,18794,28530,14622,44854,45262,17756,18042,17839,18650,44866,36472,45518,44868,24412,16885,17703,19057,34194,44765,5410,37057,44848,45517,6875,45515,44687,44836,45561,18301,17278,44867,17092,6862,24441,18572,8753,45177,5993,3883,17556,44762,44884,44861,17601,44767,39676,44870,44739,44845,17771)
Unknown column 'np.person' in 'where clause'