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 (45277,28313,28530,44836,4686,30135,10402,17756,6609,18172,36472,18996,44884,4765,44669,18900,6862,5259,44764,18719,45042,44768,17835,5388,43800,45229,17278,44745,44837,44689,44863,44878,18688,16935,19078,44848,17703,45177,16885,17556,17755,44845,44766,44875,17009,45518,45051,44869,18301,34194,18430,17657,44858,18279,13425,17981,45567,8753,18353,22509,14622,45072,30963,32454,18794,17904,24438,44855,44767,19057)
Unknown column 'np.person' in 'where clause'