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 (17556,18900,30963,44671,17335,28530,18279,45277,44531,18688,19057,3,4686,44689,44837,17657,8753,45262,18572,18981,14402,18237,24412,18427,44836,44855,13425,44765,17601,44764,32454,44849,17839,17756,44878,36472,13922,37057,17771,17755,18648,18286,18353,24441,16885,3883,44687,45517,6609,44739,24438,17981,44869,17835,18894,16935,44685,18301,6782,17492,13,44868,44745,22509,45072,45229,45180,44674,44856,44845)
Unknown column 'np.person' in 'where clause'