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 (39676,18172,44768,4686,10402,18185,19078,16935,44685,24441,18427,44745,44867,44764,44849,45515,5993,5388,44674,44765,44836,34194,45042,45517,13425,45561,17657,17278,17009,44851,43800,17904,44837,44868,37057,3,17756,44870,44856,17335,18650,45229,44687,18652,18996,44845,44766,5410,24412,28313,18794,22509,18301,17703,44775,6875,24438,44835,45516,18042,44671,44689,44848,44894,18894,45518,18353,44855,44866,18688)
Unknown column 'np.person' in 'where clause'