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 (17351,18353,13,24441,44873,44669,19057,18301,43800,18900,45515,6875,17657,44870,14622,44640,44865,4686,44835,44869,34194,18648,19078,14402,16935,44855,3883,17839,39676,30963,17601,44868,17848,17981,17237,45517,44836,18894,44878,17492,44689,44894,17556,17771,44762,6862,18652,44531,3,18688,24411,17335,44687,44849,18981,44867,36472,37267,44851,17703,13425,4765,18185,5388,24412,18572,44863,45286,45346,44775)
Unknown column 'np.person' in 'where clause'