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 (45346,44861,31354,17009,6862,44851,37267,17601,17755,24411,24441,16935,6609,37057,8753,45177,18981,44854,44531,45421,44863,44775,17492,24438,18237,17703,18648,45567,17981,32454,13988,18688,17904,44711,44762,44765,45518,30963,44869,13922,24412,17527,18996,45277,44894,30135,44671,5410,22509,18650,13,44873,18427,3,14622,45043,13425,44685,18572,45262,39676,18446,45042,44640,17092,44836,44687,44875,44848,45516)
Unknown column 'np.person' in 'where clause'