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 (30135,44739,44767,18719,17839,39676,17556,44878,17335,44851,24438,44854,44866,19057,28530,17657,22509,18688,3,3883,44531,45051,9341,44766,44868,5259,45177,17527,18430,45042,6862,17756,17981,44762,45421,17755,17351,44689,44775,19078,18185,28313,17771,18042,36472,17114,18794,18996,17092,24412,44867,32454,44884,44765,44687,45043,18427,5993,5388,17009,17601,16935,44845,6875,44685,17237,44669,44894,44855,4765)
Unknown column 'np.person' in 'where clause'