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,44865,5259,30986,44855,44685,44867,13922,18353,44848,17771,45262,17835,18286,18185,45072,44856,18237,43800,18996,18427,17657,32454,17335,6862,30135,17527,17009,18172,24438,36472,22509,3,6875,18981,44854,13,17114,17278,45516,44775,44863,44870,44851,44845,5993,30963,18794,45286,18900,45518,45277,18894,18648,44764,5388,34194,44868,45567,18650,44884,45043,45421,44861,17092,45051,28530,13988,18652,44739)
Unknown column 'np.person' in 'where clause'