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 (14402,4686,5388,44863,44868,44878,44687,30135,45051,17278,17351,18172,17092,16885,18794,13,17981,44739,44674,17839,4765,18279,3,45072,44869,28530,44689,44835,17335,18981,8753,13425,39676,18430,17527,45421,6875,3883,44849,18648,44858,5410,31354,44671,44867,17601,18446,44836,44764,18427,44762,45567,18900,44766,24438,17755,44855,17703,37057,44861,24441,9341,18894,44745,45042,24412,45180,28313,45229,44866)
Unknown column 'np.person' in 'where clause'