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 (44531,17114,44671,45346,19078,44766,44855,17904,44775,44768,44669,44762,17835,44853,6862,17335,17092,44873,44685,43800,24411,6782,4765,45515,44845,19057,45180,18652,17755,16935,45072,45561,39676,44848,44868,24441,22509,18688,24412,44739,45421,18981,44835,45229,44674,44851,14622,18279,44689,17981,17601,18648,10402,18430,3,18446,17756,45277,5388,17657,36472,18185,18301,24438,18172,9341,18996,18427,13,45043)
Unknown column 'np.person' in 'where clause'