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 (17527,18981,18042,18446,17492,17351,44873,45517,44863,44685,17835,18172,24411,3883,44775,18650,44739,44767,44894,44866,17556,39676,45051,6609,18237,44868,17904,17601,45516,45515,44851,45346,17278,44854,45567,44861,44845,14402,44858,45286,13988,5259,44867,30963,18279,44669,17335,45177,28313,13425,8753,4686,17755,32454,18719,19057,44640,18894,44745,44835,44848,44531,5388,18996,24441,45180,5410,44865,34194,44855)
Unknown column 'np.person' in 'where clause'