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 (17755,18286,18688,17278,44848,44711,18981,13988,14402,45286,24438,44869,5410,45421,36472,4686,17839,28530,44762,44767,18719,45072,18900,18430,44854,45515,45180,19057,44685,44875,3883,44836,44640,44766,17771,17335,44873,44764,18237,18427,45561,18794,37267,44671,18650,17848,45567,17114,44687,24412,30135,13922,44775,17237,44865,44870,17981,17657,17601,24441,6875,28313,45177,17835,16885,17009,44531,44739,45517,44745)
Unknown column 'np.person' in 'where clause'