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 (17278,18688,16885,18286,17756,45346,18353,45567,18185,17335,44851,44858,18894,45180,17755,24412,17556,18981,6609,45286,44868,17657,44865,45262,45421,24438,17527,17981,6782,44863,14402,5388,16935,4765,45516,45042,44848,45051,5993,5410,36472,44531,44689,45561,45043,44745,44640,3883,45277,13988,10402,44867,17904,18719,34194,44875,31354,44836,13425,44674,18650,28530,45177,44764,44685,44849,24411,44765,14622,13)
Unknown column 'np.person' in 'where clause'