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 (13425,17839,37267,44873,17981,44863,18650,45421,6862,30963,13922,5388,17703,37057,30135,18719,44853,3,18446,44867,44866,17237,44848,44640,18353,44845,44875,17335,18301,17527,18430,24438,9341,6782,45051,36472,44685,18648,44767,44868,18286,44669,44865,30986,45518,17556,18572,44861,44894,19078,44855,18996,4686,17755,39676,3883,44765,45561,24412,18042,14622,44671,17657,45515,17092,45346,17771,6609,18237,18172)
Unknown column 'np.person' in 'where clause'