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 (45346,44837,30986,18286,6875,44845,3,44768,5993,18301,18042,45180,44685,45229,44669,45515,22509,45177,44854,17755,5259,45567,37267,18279,24412,17756,34194,6862,17278,44894,44687,44767,44836,18900,24441,17351,44766,36472,17835,44745,45042,44884,14622,16885,17009,44858,18650,18430,44671,44851,31354,44848,30135,18185,28530,44875,17703,6609,44531,18894,18172,13,13988,44689,24411,44711,17237,44878,4765,44856)
Unknown column 'np.person' in 'where clause'