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 (44884,13425,6862,18794,44674,17835,16885,17351,22509,17848,44854,44835,28530,17278,18430,44685,5259,31354,45517,45567,44856,44671,8753,18042,34194,44851,18894,13,45177,37057,18172,17009,18981,24441,24411,17492,18719,45277,18648,44868,17703,44858,3883,44870,44689,4765,45072,44764,19057,18279,6609,18652,18185,44745,44739,13922,44863,45180,44762,45421,44866,17771,45262,45346,17556,18572,45515,44845,44837,3)
Unknown column 'np.person' in 'where clause'