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 (18279,44766,5410,44855,17351,9341,44762,44739,44835,45561,18900,44689,17237,44861,18894,17703,44836,44853,3883,14402,44875,17755,17657,45262,17114,32454,17092,44856,45567,44685,44640,8753,18688,37267,45516,13988,17771,18427,13922,39676,44768,17556,44849,45286,30963,30986,6862,44674,44837,44869,18650,18652,17848,18446,6875,18430,45177,18719,18353,16885,44531,6609,17839,37057,18794,24441,18572,3,45042,44884)
Unknown column 'np.person' in 'where clause'