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 (44884,8753,44878,36472,44836,44835,17492,17835,19057,30135,17278,17556,44848,37267,17527,44873,45051,17756,44671,17755,18650,44640,44775,18981,44856,16935,13425,17601,18446,17237,45286,6609,44837,45180,44869,18430,44711,44689,28313,13922,45043,17981,16885,45516,17335,18237,18900,45567,45561,44745,9341,18719,37057,30963,6782,3883,44739,18996,44868,43800,18185,17771,32454,45262,18688,18172,44762,18794,44687,17657)
Unknown column 'np.person' in 'where clause'