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 (44894,24438,44775,17335,17981,44870,44764,44858,13,22509,44848,17657,24411,17351,32454,18650,18042,13988,17114,4765,17556,44762,17848,18427,37267,17237,39676,17009,44866,44845,6875,3883,17492,44863,45042,18996,18794,3,44531,44711,18286,44855,17835,17839,45262,44865,44671,44835,18719,44869,45277,44884,17092,5410,45561,14402,44854,45177,44878,44836,18446,45180,17755,45051,44689,44867,45518,45517,19078,44875)
Unknown column 'np.person' in 'where clause'