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 (44835,44674,17492,45561,24412,45515,14402,17114,44866,6875,24441,44640,17351,17835,44764,44671,44768,44765,10402,45346,18237,44848,30963,44685,17237,18430,19078,18279,24438,44531,31354,44894,44851,13425,6609,13,44863,45042,18648,44861,28313,17771,44868,16885,18652,44867,45517,44858,18900,18688,17703,44766,5410,18894,18650,44856,44845,44689,45229,44873,32454,18286,44849,22509,3,44878,18172,45277,17556,16935)
Unknown column 'np.person' in 'where clause'