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 (17904,44767,18301,44739,18237,24412,6609,44878,17114,45180,44868,8753,45043,5993,13922,5259,44711,44640,17009,18894,44845,13988,44687,44894,44766,19057,44865,17556,18172,14402,16935,18688,39676,45567,44867,4765,18719,32454,6862,44837,30135,17335,44853,9341,18185,45516,18652,44836,18648,44835,24438,44745,19078,18996,18042,44764,17848,43800,36472,45561,24441,4686,18279,44775,45051,13,17601,28530,44671,45346)
Unknown column 'np.person' in 'where clause'