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 (18894,44865,45286,14402,45561,45262,19057,45515,17756,17351,44674,44858,39676,44875,18572,18430,17771,44687,18301,44685,44854,5388,17904,45346,45180,28530,45421,13988,45229,45042,18719,3,18353,44835,17839,44711,17556,17009,36472,18688,13922,44766,44775,17848,30986,31354,44867,44762,44848,10402,44894,17335,44863,14622,44866,17981,44856,18427,43800,3883,18900,45277,24438,17657,44884,16935,44745,28313,6609,17237)
Unknown column 'np.person' in 'where clause'