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 (17848,17492,45561,44762,17981,45518,45177,45567,17351,17657,45043,17556,5388,44863,6875,18237,43800,44858,6609,44687,44669,9341,13988,44674,24438,17092,44836,6782,44845,45517,44854,37057,18279,44870,17703,44739,17278,44767,44855,44835,45072,45286,45515,44531,44745,4686,44875,18648,44640,4765,45262,24412,37267,39676,17335,18042,17527,31354,5993,17904,44884,45229,44851,44685,36472,44711,30135,18430,44837,13)
Unknown column 'np.person' in 'where clause'