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 (30986,30135,44745,16885,18185,45518,18237,44855,18794,17756,16935,43800,37057,45180,44669,32454,28313,17527,45042,14402,14622,18688,17237,44685,17009,45072,44868,44845,5993,44767,13988,44854,18353,5388,45043,44768,6782,18042,24441,31354,17556,13,44765,18894,18996,3883,18172,18652,44689,36472,44711,44764,45262,19057,24411,44671,44853,6875,44849,17981,17904,8753,44848,39676,17335,18446,44766,44762,17492,44875)
Unknown column 'np.person' in 'where clause'