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 (45042,44835,44878,17835,6875,18172,18719,17092,24411,5993,17981,44849,18688,18900,24412,44868,14402,44762,6862,5259,13425,44858,44765,3883,44855,4686,18237,45567,17009,44875,5410,44845,18301,13988,17601,18996,18185,30135,18042,45421,44863,32454,44869,9341,43800,14622,44894,30986,6782,44745,18894,44767,39676,22509,18648,44836,8753,45072,18650,16885,19078,18572,28313,17657,17335,44674,18652,45262,17904,10402)
Unknown column 'np.person' in 'where clause'