FROM notifications INNER JOIN users ON users.vk_id = notifications.from
How to add to INNER JOIN is:
или notifications.from = 0
That is something like this:
ON users.vk_id = notifications.from || ON notifications.from = 0
But I do not know the syntax. Help :(