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 (34194,44853,14622,44685,44868,17237,18794,44687,45346,4686,6862,5993,13425,44845,44849,44640,44865,24411,44674,44739,44854,45043,18430,44848,24412,30986,4765,19078,44875,17009,44837,17114,45177,8753,44762,3883,17492,18172,45229,17835,18900,45286,28313,44768,24441,44669,45517,30963,45072,18237,16935,44866,3,17904,18185,17601,18981,44867,18688,39676,45515,17335,45180,44766,45561,31354,17556,18894,14402,17703)
Unknown column 'np.person' in 'where clause'