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 (44766,19057,17556,18894,45515,28530,45180,45277,32454,6862,18353,45042,14402,44865,44858,44866,17092,17848,43800,18688,45516,24411,3883,44853,30135,18794,6782,17839,30986,18279,17009,17703,44849,44848,45346,18430,13425,22509,44855,28313,45518,18650,18427,44768,44531,18042,45229,37057,24438,44854,44869,45262,17771,45561,13988,44669,16885,44745,5410,18286,17278,44856,45051,44868,45567,44739,44845,17335,44837,4765)
Unknown column 'np.person' in 'where clause'