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 (44711,44765,44640,44863,45277,17092,44867,44685,17756,17527,17351,17601,44836,34194,18648,44894,44845,45518,13,44861,45180,18427,18446,30135,17556,17839,17835,44764,13988,17771,16885,44868,18301,45262,18430,24411,17657,8753,30986,5388,45561,17904,18237,44837,9341,45177,44689,45567,18172,37057,45515,6862,44835,44669,44687,14402,18286,3,24438,17703,45072,44854,13922,44671,18185,19078,16935,17981,44856,44878)
Unknown column 'np.person' in 'where clause'