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 (44849,44685,24438,45567,4686,37267,44869,45346,45515,6782,44858,44745,31354,30963,17601,44851,18430,45229,44711,44640,17839,44687,18996,5410,16885,17756,14402,5388,17904,28313,44689,44853,17703,44762,18650,6875,24441,44865,17492,6862,44868,45561,44878,44671,44767,13,18794,44674,17009,17527,45517,44873,17351,44669,44739,34194,3883,45516,36472,18279,18185,44884,45180,13425,18900,39676,22509,10402,18237,4765)
Unknown column 'np.person' in 'where clause'