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 (45518,45072,18237,45346,5388,44873,17839,4686,6875,44894,17835,44674,17114,45180,5410,24438,45286,44640,14622,44739,17492,45561,45262,44875,17092,5259,17703,39676,3,17657,6609,13425,17237,45043,16885,17556,18353,18719,6782,24441,17009,44854,6862,44837,45177,44669,19057,18430,18042,44869,44851,10402,44865,44835,44766,18894,17527,13,44855,3883,45567,18279,18652,17756,17904,45517,17848,18648,44687,44836)
Unknown column 'np.person' in 'where clause'