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 (5259,18301,44894,44873,30986,37267,45043,17237,30963,17756,44766,30135,6609,3,3883,45517,44867,44669,45051,18172,18237,17839,44762,5410,18430,24441,36472,13,19057,32454,44870,24411,44837,18981,44866,17755,44765,28313,18427,44835,18185,44745,44739,17492,44853,17092,17835,44848,17848,44856,14402,43800,44711,18894,44689,44775,5993,18900,17278,44687,44869,17657,44855,17335,18279,16935,44863,45346,17527,4686)
Unknown column 'np.person' in 'where clause'