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 (17527,37267,17904,17114,44685,44745,24438,17237,17835,18981,18172,18237,44856,5993,18446,45346,44837,45177,6862,45262,10402,24412,45286,44762,18353,18279,44845,17092,44687,24411,44836,44875,45072,44531,44674,13425,44858,37057,31354,4765,45042,18900,44863,32454,14622,44873,17771,44848,44775,18688,44878,17009,18894,6782,44671,45051,17278,44867,34194,45515,17657,44711,44739,30963,44849,18572,9341,44640,3,44689)
Unknown column 'np.person' in 'where clause'