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 (18427,45516,44870,44669,18996,44674,44687,13425,44836,44866,18286,18172,16935,8753,44640,5259,44854,17278,36472,37267,10402,45518,44711,17755,17492,18430,44739,5410,45567,24438,18237,44764,44863,17848,44768,45229,17601,44894,24412,44671,44745,17114,3,45072,45177,28313,18446,6609,17771,44875,18652,44855,17657,18042,45346,45262,45517,17839,30986,18279,17351,43800,32454,13988,44867,18572,4765,18353,17527,17335)
Unknown column 'np.person' in 'where clause'