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 (44689,17756,44765,44849,18652,18572,17771,16885,5259,44687,18794,17278,28530,45180,18894,44851,44835,44865,18650,13988,13922,37267,18430,44764,44867,4686,44685,45515,45277,32454,44866,18648,44836,44671,24441,17492,44870,18237,45516,44762,44767,17009,43800,44868,44856,18900,44775,45042,18446,10402,8753,17848,45262,39676,17556,44855,44854,18301,17835,30986,18286,14622,13425,45567,44873,44669,18279,45072,44640,18172)
Unknown column 'np.person' in 'where clause'