Printing error in SQL query
Double checking if info about child is available