Invalid SQL: SELECT rdId, rdLink, rdType FROM redirects WHERE rdForwarder=''+$(this).data('video')+'' AND rdForwarder != '' AND rdLink != ''