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 (44873,18279,19057,16885,44875,18353,18446,44765,44685,17092,45517,30963,19078,17981,44767,18719,45043,6782,18794,14622,32454,18648,5259,45567,18286,4765,44851,28313,44687,17527,17755,8753,18650,17492,44848,13425,39676,4686,18688,18430,17351,44640,44671,13922,44836,18894,45286,17771,44775,18652,45518,24438,16935,44837,44855,44674,31354,6862,44845,10402,17657,45516,45515,43800,44853,24441,28530,17278,37057,18042)
Unknown column 'np.person' in 'where clause'