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 (37057,44878,44858,17092,18286,17601,5410,18650,44674,44855,44768,19078,17527,17904,44870,45286,44745,18279,17556,6862,36472,32454,44853,5259,18427,45515,45561,14622,44835,45518,44875,18430,39676,44894,30963,17114,5993,45421,18894,10402,44884,45180,8753,6875,18237,44869,17278,44765,17657,45262,45177,45229,5388,45043,45516,45567,28313,17835,19057,44836,17756,44640,30135,13922,18446,24438,18301,28530,37267,17335)
Unknown column 'np.person' in 'where clause'