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 (17756,44851,44878,18572,18353,10402,44856,44640,17703,44531,44870,17492,45229,18172,44687,30963,45561,4765,5993,44674,32454,18719,44865,45518,9341,44762,19057,39676,18427,17351,44894,14402,18981,24411,17601,18237,17755,44853,17009,8753,18042,44854,36472,17771,30135,45177,14622,17335,4686,44745,13425,28530,17092,18301,13,17839,45346,18279,44835,18996,44845,34194,17237,44868,45567,3883,45051,18648,18446,44768)
Unknown column 'np.person' in 'where clause'