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 (18042,45051,45262,18688,17278,17556,6875,44894,18286,13988,44640,30963,18185,44851,24411,44861,24441,18446,13922,4765,17092,31354,44837,18996,18652,44853,44685,39676,44875,17351,17601,3883,13,44863,14402,45043,18427,18572,44531,44866,44768,44878,17848,45229,24438,3,22509,8753,4686,28530,44739,44858,45517,18719,17527,18650,45072,32454,18794,45515,36472,44845,18981,5993,17835,18301,19078,44848,43800,44835)
Unknown column 'np.person' in 'where clause'