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 (17278,17492,3,44853,44894,44835,5993,45561,18042,5259,44868,37267,3883,4686,44848,45517,17527,5410,18648,44764,18185,17839,44854,17237,6875,28530,44775,44865,18981,6782,32454,14622,44765,44863,18996,45180,45072,13425,45177,18430,45229,13988,24411,44739,5388,18794,44884,36472,44671,45286,44849,44685,17755,44861,17835,45567,45051,30963,17904,17335,18286,45277,6609,34194,17556,13922,30135,44531,17771,18894)
Unknown column 'np.person' in 'where clause'