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 (44768,44866,45517,44855,24411,44894,44762,17237,18652,17556,44861,44849,24438,28530,17351,44836,44875,18353,44869,45421,44687,13988,44775,18042,18279,18650,17848,17839,18688,17981,3883,17114,45515,32454,44868,44848,45516,6862,44845,44640,45518,45180,45262,34194,44674,18286,17657,4765,18446,18648,17009,17771,44689,16935,18430,6875,4686,17492,13,17278,17835,28313,44766,44856,45043,24412,22509,45286,45277,45177)
Unknown column 'np.person' in 'where clause'