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 (4765,44762,18794,44863,18652,17601,44689,17351,44848,17756,3883,18427,45421,45042,45515,45516,17848,18650,44671,6862,44875,45229,17335,17839,44861,44868,16935,24441,45177,13922,18446,44856,6782,44739,22509,44836,44768,18900,44766,5993,17904,36472,44764,24412,18981,18648,17703,45072,28530,44640,17092,44775,44767,18353,14402,44858,44849,44765,44745,30986,45262,44873,6875,18430,45286,44687,18286,44870,44531,9341)
Unknown column 'np.person' in 'where clause'