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 (32454,13922,18719,44531,5259,44766,18286,5388,44866,44873,17835,44767,18301,17114,18427,10402,28530,44674,16885,17492,18430,37267,44854,44685,17556,19078,17981,44764,39676,44687,6782,44835,44669,44848,45262,45561,44884,17657,44878,44837,24441,17771,17755,18900,45517,5993,45051,44858,24412,24438,30963,5410,31354,18042,14402,44671,17237,24411,45516,18650,44868,17009,17351,18172,45072,44856,44836,18353,45277,16935)
Unknown column 'np.person' in 'where clause'