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 (36472,6862,13988,45561,28313,44685,37057,17839,16885,44687,24411,44531,34194,18279,44853,6875,24438,44762,17755,44866,17756,18446,17009,44689,44768,19057,18301,45180,18172,5259,44855,44845,17492,44640,44858,44856,14402,4686,37267,45516,44873,44869,18894,14622,45072,18353,18688,44868,9341,45229,44854,43800,44765,18042,44775,3,6609,39676,5410,5993,18900,45286,28530,44861,45042,18648,18981,44766,17335,22509)
Unknown column 'np.person' in 'where clause'