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 (44856,30963,44851,44685,44867,18719,17335,17771,44674,18301,17092,44745,18446,16935,37267,18279,44873,24412,18688,36472,17601,17756,18286,28530,32454,14402,14622,28313,18650,37057,44869,45561,44848,8753,44868,45567,5259,44866,44768,39676,17981,6862,24438,45518,44849,17492,17755,17835,18981,5410,17114,17237,18430,44765,18042,17009,24411,18652,45051,45346,17904,44836,44775,6875,44640,44762,44894,13922,45043,44863)
Unknown column 'np.person' in 'where clause'