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 (30963,44870,6782,17835,18353,19057,45180,44685,18719,18237,45421,44863,44775,44851,45051,44865,17703,45177,44766,17492,44884,14622,44854,44873,44848,44745,44845,17556,45518,32454,18172,45043,36472,13425,45229,44768,5259,3,44853,4686,18572,17092,5410,28313,17278,45042,45517,30986,22509,44762,17771,18648,18286,44878,18894,44640,45567,30135,17527,3883,17839,18652,17848,17657,44861,4765,45561,44894,19078,44856)
Unknown column 'np.person' in 'where clause'