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 (44764,18301,17092,44858,30135,44848,18894,44863,17527,18185,14402,19078,45515,13922,18279,3883,44861,3,44867,18430,45262,44851,37057,17981,16885,17839,31354,45043,45229,44745,6782,44869,17657,45277,45180,44836,45561,6875,28313,18572,5388,17755,44711,45516,45072,30963,13988,5259,44685,18286,6862,13425,18981,6609,44853,45421,17703,44669,44873,45177,44855,45286,5993,19057,10402,45346,8753,24441,44875,44868)
Unknown column 'np.person' in 'where clause'