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 (18572,18279,44851,8753,5993,44837,18900,30986,17835,44849,45072,44854,44674,10402,45346,4765,9341,44865,44640,44855,37057,37267,18650,3883,16935,44775,13922,17114,24412,17092,43800,14402,24441,45421,17527,45180,44671,17335,32454,44856,44848,31354,45277,44711,18430,19057,24438,44863,6862,28313,44845,44739,18301,5388,18446,45051,6875,44866,17755,6782,44868,17904,44853,18353,45561,45517,18286,4686,44858,6609)
Unknown column 'np.person' in 'where clause'