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 (6875,24441,37057,31354,17351,6609,36472,45516,5388,44845,5993,45051,44687,18794,44775,45229,18427,45042,17839,45072,17848,44764,18688,18900,28530,44711,44531,44766,9341,17657,44767,17771,14622,44768,45043,28313,5410,18446,17527,18185,4765,17492,44674,44861,6862,45421,45515,44848,32454,6782,39676,18353,44855,18237,13988,44851,44858,5259,17835,44875,44745,17335,44868,44870,13922,45177,24438,44669,44671,43800)
Unknown column 'np.person' in 'where clause'