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 (13,17114,28530,44775,44689,44848,44855,16885,17556,44640,17009,9341,45229,5410,31354,44884,17335,18650,17601,17981,39676,18794,45072,17092,44765,18900,44674,45180,44875,17771,44856,45051,17351,18981,44685,44739,18237,44865,44870,24412,18996,5259,14402,37057,45517,44861,43800,19078,45518,44858,13988,10402,17703,18042,45515,44768,18652,45516,18353,44762,17835,44845,19057,32454,17657,44894,44669,44711,30135,44878)
Unknown column 'np.person' in 'where clause'