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 (18172,9341,5993,18427,17527,17657,45346,44835,18900,44856,17492,5410,44674,45561,44766,17839,44849,17351,45515,45072,44669,45043,31354,14622,44745,17601,37267,44685,18185,4765,45286,18286,18353,6875,39676,45277,17335,44767,37057,17756,4686,45051,17556,45042,44855,17848,24441,17981,44711,44689,30963,18794,44671,28530,18446,32454,22509,24411,45517,44863,16935,17237,44865,44764,44762,44868,17755,24412,34194,44866)
Unknown column 'np.person' in 'where clause'