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 (44853,45518,18353,17848,45286,44687,18301,32454,13425,44685,44845,18688,44878,44766,18572,17556,45567,19078,18652,9341,18185,44837,30963,44689,6609,22509,34194,24438,44875,45229,17492,14402,5388,14622,18042,45051,44671,45515,45421,17009,17527,18427,28313,44764,44767,13988,10402,44848,18900,24412,44873,16885,45180,5259,17335,44849,18279,17237,45346,44669,30986,18648,44531,5410,4765,17278,44674,18237,18894,45043)
Unknown column 'np.person' in 'where clause'