string(2359) "SELECT *,  CAST(AES_DECRYPT(u.`username`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `username`,  CAST(AES_DECRYPT(u.`password`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `password`,  CAST(AES_DECRYPT(u.`firstname`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `firstname`,  CAST(AES_DECRYPT(u.`lastname`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `lastname`,  CAST(AES_DECRYPT(u.`mobile`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `mobile`,  CAST(AES_DECRYPT(u.`address`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `address`,  CAST(AES_DECRYPT(u.`zipcode`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `zipcode`,  CAST(AES_DECRYPT(u.`city`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `city`,  CAST(AES_DECRYPT(u.`Emergency number`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `Emergency number`,  CAST(AES_DECRYPT(u.`other_number`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `other_number`,  CAST(AES_DECRYPT(u.`extra_info`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `extra_info`,  CAST(AES_DECRYPT(u.`birth_date`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `birth_date`,  CAST(AES_DECRYPT(u.`sex`, 'HKS74grVwVRRVe6VPpptZmmoWo8F09qCVk4UACZFp1HPqwtsKRx2TJe3GLfigqXVvR5zaYMQoFVoqjzk4XkWCafirU49m8VNux0PA6rUa') as CHAR) as `sex` FROM `agrs_users_encrypted` u WHERE level = 5 and `parent_id` = '' and parent_id != 0 and `id` not in (SELECT `user_id` FROM `agrs_vacation_entries_encrypt` WHERE `event_id` =  and `archived` = 0) "
string(167) "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and `archived` = 0)' at line 1"
int(1064)