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,18652,37267,44687,44745,8753,28530,24438,17009,17527,13988,18996,44836,18185,6875,44873,31354,14402,18650,39676,10402,17848,17839,44766,18894,5993,44848,28313,45042,44853,44856,17756,18430,17492,19057,45286,17335,17981,44764,44531,3,18286,44640,13,43800,44837,44894,44849,44689,30135,44674,45177,44869,17771,45561,34194,18900,45180,45421,44867,44775,18981,30963,44669,18446,36472,45043,17904,44711,30986)
Unknown column 'np.person' in 'where clause'