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 (24441,36472,18427,44669,4765,24411,45043,18446,18430,3883,28530,30986,45518,17756,44687,45051,19057,44775,44863,16935,44745,44531,44768,18572,18650,44766,44764,18042,44689,44894,6862,44836,18719,45515,18652,44856,5993,44837,5410,44869,44858,14622,18301,17237,39676,18185,5388,17335,18900,17835,45567,24438,44866,44711,45421,44851,44873,44865,17839,30135,17092,18981,17755,17771,44848,17492,22509,45277,44875,18996)
Unknown column 'np.person' in 'where clause'