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 (24412,24441,4686,44853,3,14402,45262,45518,44884,17009,44640,44848,18427,13988,45177,17092,44863,18719,32454,18996,44845,18172,17703,17981,44870,24411,18688,45567,17839,24438,18237,44687,44856,44764,44861,45517,17556,44765,44837,44849,44689,17771,39676,30963,44866,45072,28530,6609,45421,13425,13,17848,44685,43800,44531,6862,45516,18279,45042,30135,18301,18650,6875,45286,18794,44674,34194,17492,18652,31354)
Unknown column 'np.person' in 'where clause'