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 (24441,18446,17335,18172,18286,45043,18900,17009,45042,31354,30135,39676,13425,17848,18648,13,44853,17756,17835,34194,22509,45561,44762,13988,17351,30963,6609,18301,44878,18794,24411,5259,30986,44767,18650,45516,18719,24412,6862,44855,18427,18652,17771,8753,24438,18430,45517,18894,44837,44745,18981,3883,44858,16885,45072,44689,5388,36472,6875,44775,37057,44873,44870,45286,17278,45277,44711,44875,44865,13922)
Unknown column 'np.person' in 'where clause'