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 (44878,18652,16885,13988,22509,9341,44884,30986,44865,44764,44775,13922,18794,13,18353,44671,18996,5410,44687,18719,45229,45561,45072,18688,45043,19078,39676,17009,45051,44768,24438,5388,17835,24412,18572,45042,45177,44837,6609,17092,34194,31354,44689,14402,44531,45517,17237,44685,14622,24411,28313,36472,17848,17351,44848,30963,45346,45286,44745,17601,32454,45515,44762,17335,44863,17278,17904,44868,18648,18042)
Unknown column 'np.person' in 'where clause'