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 (17848,44845,3883,45262,18286,6862,45518,45561,45042,17492,44531,17237,8753,44863,45346,17657,5259,44870,44764,44853,28530,30963,44866,13,17904,44868,44855,45515,18172,45421,44848,17092,17335,45072,44685,44875,44884,45177,45043,17835,17114,16935,32454,13988,18353,17771,44867,44873,13922,18427,45516,44878,44894,44745,28313,17839,17703,45051,4765,18430,45180,44669,44835,18301,17601,34194,18237,45286,6875,5410)
Unknown column 'np.person' in 'where clause'