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 (18042,14622,17601,9341,44674,45567,18794,39676,44863,28530,5259,44640,17492,30963,45517,10402,18688,17556,44687,18279,44764,18446,44765,44884,18172,44845,5993,44853,18430,44878,17981,45072,32454,44855,44848,44531,44861,45042,17009,17278,17703,13,24412,45561,18572,30986,18301,44873,36472,45180,17756,17351,18353,13425,44766,17114,45051,18652,44867,19057,17237,19078,24441,18719,5410,13988,6862,37057,44711,16935)
Unknown column 'np.person' in 'where clause'