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 (44674,6862,24412,17756,44861,17839,18353,13425,6875,13922,5410,17601,18981,17981,45262,45421,17835,44854,45286,18996,18648,30963,4686,16935,45180,44835,44685,44531,18172,44837,18900,34194,45072,44870,28530,19057,44775,19078,17335,44836,9341,44640,44669,44867,24441,44767,36472,17492,8753,45517,44711,18688,32454,13988,3883,14402,45277,18301,45515,18185,44858,14622,13,18430,45516,24411,44845,45561,17237,17771)
Unknown column 'np.person' in 'where clause'