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,44674,18353,44894,30986,13922,44685,44531,44762,18650,44764,45043,18894,17835,44853,13988,17981,24411,14402,44765,5388,18427,44855,22509,24438,45421,18648,4686,44669,18172,44858,6862,44767,5259,18301,17601,5993,45517,18279,44739,19057,28530,6782,44869,14622,44884,45262,9341,18446,44867,31354,44878,44863,44766,44687,18572,39676,44861,4765,17771,37057,34194,45516,24441,17755,44835,18688,18652,18794,17756)
Unknown column 'np.person' in 'where clause'