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 (45177,18286,8753,44853,45072,44669,44687,44849,44868,18430,24441,5993,17556,44851,45180,44739,44858,18719,44855,44768,17657,45262,18279,17351,17839,31354,45421,44861,13425,45516,18688,9341,17335,4765,18894,17527,45561,44689,44671,17848,10402,17278,5259,45043,44836,18185,17835,43800,37057,24412,3,13988,44640,18446,17771,18427,17703,17904,44878,44685,44873,30135,44837,45518,13922,28530,45286,5388,4686,18981)
Unknown column 'np.person' in 'where clause'