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 (44855,18894,45072,17278,44866,45042,17848,45286,24441,17756,18301,6862,44835,39676,18042,18427,37267,44764,17335,28313,18719,5388,44875,44768,45277,22509,5259,44689,8753,45518,44884,30986,17835,17657,14402,13425,44669,17527,17114,17009,14622,45561,44861,6782,17092,45516,44873,44711,17703,44775,44765,44766,17981,44894,17601,18650,4686,44845,17492,44762,45229,44685,44739,44854,45180,17904,44851,18172,44640,17556)
Unknown column 'np.person' in 'where clause'