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 (44745,6862,17755,18996,44853,13,44640,5410,44689,45515,17703,44837,44764,44767,44851,3883,45286,4765,18894,17114,17335,18172,17492,17601,44531,18301,17092,45177,17657,44861,18719,17556,18572,18353,17835,5259,45262,45042,18652,44875,37267,17527,17839,18042,44768,45561,17771,13988,44671,17848,30963,44762,17237,44848,45043,17278,14402,44849,44867,39676,44836,44775,44869,44766,28313,45180,45517,18900,44855,18427)
Unknown column 'np.person' in 'where clause'