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 (6875,44766,34194,18996,44848,16935,18446,44762,37057,44858,4765,10402,44837,44768,18894,13,18185,28530,45518,32454,24438,44861,18301,18688,18353,30986,17237,6782,30135,44856,17755,44685,45177,45180,31354,3883,18648,17527,9341,5388,24412,45567,39676,44775,44867,18286,45515,44674,18719,44531,44851,44849,17756,45517,18652,18042,44863,18427,6609,24441,44884,18572,3,19057,44669,44873,17839,18172,44865,24411)
Unknown column 'np.person' in 'where clause'